diff options
author | Christoph Hellwig <hch@lst.de> | 2018-03-14 07:15:31 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-03-15 18:31:38 +0100 |
commit | 7d9df3c1631b0cb7eb4e59c934271adf0ead2f55 (patch) | |
tree | b5e94c632c4fc5ff16c697378adfdcec3bcaab17 /fs/xfs/xfs_aops.c | |
parent | xfs: fix the check for COW extents in xfs_swap_extents (diff) | |
download | linux-7d9df3c1631b0cb7eb4e59c934271adf0ead2f55.tar.xz linux-7d9df3c1631b0cb7eb4e59c934271adf0ead2f55.zip |
xfs: don't use XFS_BMAPI_ENTRIRE in xfs_get_blocks
There is no reason to get a mapping bigger than what we were asked for.
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_aops.c')
-rw-r--r-- | fs/xfs/xfs_aops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index a0afb6411417..c79a3ca20ef8 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -1331,8 +1331,8 @@ xfs_get_blocks( end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + size); offset_fsb = XFS_B_TO_FSBT(mp, offset); - error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, - &imap, &nimaps, XFS_BMAPI_ENTIRE); + error = xfs_bmapi_read(ip, offset_fsb, end_fsb - offset_fsb, &imap, + &nimaps, 0); if (error) goto out_unlock; |