diff options
author | Christoph Hellwig <hch@lst.de> | 2019-10-25 08:25:38 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-28 18:37:54 +0300 |
commit | f9acc19c8cbe7fd8401b53e37c035e8c805fce26 (patch) | |
tree | a147baa3f9eb19586289603729e31c885f2e6f85 /fs/xfs/xfs_file.c | |
parent | 30fa529e3b2e6f1da277ef8525e4ce7979c57c57 (diff) | |
download | linux-f9acc19c8cbe7fd8401b53e37c035e8c805fce26.tar.xz |
xfs: use xfs_inode_buftarg in xfs_file_dio_aio_write
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_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index ee4ebb7904f6..156238d5af19 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -487,8 +487,7 @@ xfs_file_dio_aio_write( int unaligned_io = 0; int iolock; size_t count = iov_iter_count(from); - struct xfs_buftarg *target = XFS_IS_REALTIME_INODE(ip) ? - mp->m_rtdev_targp : mp->m_ddev_targp; + struct xfs_buftarg *target = xfs_inode_buftarg(ip); /* DIO must be aligned to device logical sector size */ if ((iocb->ki_pos | count) & target->bt_logical_sectormask) |