mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
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>
This commit is contained in:
parent
f9acc19c8c
commit
c7d68318c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user