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>
Showing
- fs/xfs/xfs_aops.c 5 additions, 29 deletionsfs/xfs/xfs_aops.c
- fs/xfs/xfs_aops.h 0 additions, 3 deletionsfs/xfs/xfs_aops.h
- fs/xfs/xfs_bmap_util.c 8 additions, 7 deletionsfs/xfs/xfs_bmap_util.c
- fs/xfs/xfs_file.c 7 additions, 7 deletionsfs/xfs/xfs_file.c
- fs/xfs/xfs_inode.h 7 additions, 0 deletionsfs/xfs/xfs_inode.h
- fs/xfs/xfs_ioctl.c 3 additions, 4 deletionsfs/xfs/xfs_ioctl.c
- fs/xfs/xfs_iomap.c 7 additions, 4 deletionsfs/xfs/xfs_iomap.c
- fs/xfs/xfs_iops.c 1 addition, 1 deletionfs/xfs/xfs_iops.c
Please register or sign in to comment