]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add a xfs_inode_buftarg helper
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Oct 2019 05:25:38 +0000 (22:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Oct 2019 15:37:54 +0000 (08:37 -0700)
commiteeaaa5fc7acb973816c9a834f9106ca3a24be91a
treec9af7cad093e70942034653db98d3d2fa8b77e22
parent01e66d42cb96caf091a985e0a998fc3f7df3408f
xfs: add a xfs_inode_buftarg helper

Add a new xfs_inode_buftarg helper that gets the data I/O buftarg for a
given inode.  Replace the existing xfs_find_bdev_for_inode and
xfs_find_daxdev_for_inode helpers with this new general one and cleanup
some of the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_aops.h
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_file.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iops.c