]> 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)
commit24fca5d60fbd2ee057147806a53b631e896fa5a3
treec9af7cad093e70942034653db98d3d2fa8b77e22
parent9e5653095ce55136a4c45d77c7cac839103eb59e
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