Commit f9acc19c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong
Browse files

xfs: use xfs_inode_buftarg in xfs_file_dio_aio_write

parent 30fa529e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)