summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-10-25 07:25:39 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2019-10-28 16:37:55 +0100
commitc7d68318c9ae240800cad07cbe641f1bab3070b8 (patch)
tree6da7aeaf40849020182c96031e392e9e2a6587de /fs/xfs/xfs_ioctl.c
parentxfs: use xfs_inode_buftarg in xfs_file_dio_aio_write (diff)
downloadlinux-c7d68318c9ae240800cad07cbe641f1bab3070b8.tar.xz
linux-c7d68318c9ae240800cad07cbe641f1bab3070b8.zip
xfs: use xfs_inode_buftarg in xfs_file_ioctl
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>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index b7b5c17131cd..32782699bfac 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -2135,10 +2135,8 @@ xfs_file_ioctl(
return xfs_ioc_space(filp, cmd, &bf);
}
case XFS_IOC_DIOINFO: {
- struct dioattr da;
- xfs_buftarg_t *target =
- XFS_IS_REALTIME_INODE(ip) ?
- mp->m_rtdev_targp : mp->m_ddev_targp;
+ struct xfs_buftarg *target = xfs_inode_buftarg(ip);
+ struct dioattr da;
da.d_mem = da.d_miniosz = target->bt_logical_sectorsize;
da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1);