summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_pnfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig2019-02-18 18:38:46 +0100
committerDarrick J. Wong2019-02-21 16:55:07 +0100
commit16be1433737ee46f88da57d47f594c4fc1376538 (patch)
tree8f4ff2caae746ae965a7fca52b7a1e6c8a4620bd /fs/xfs/xfs_pnfs.c
parentxfs: fix xfs_buf magic number endian checks (diff)
downloadkernel-qcow2-linux-16be1433737ee46f88da57d47f594c4fc1376538.tar.gz
kernel-qcow2-linux-16be1433737ee46f88da57d47f594c4fc1376538.tar.xz
kernel-qcow2-linux-16be1433737ee46f88da57d47f594c4fc1376538.zip
xfs: make xfs_bmbt_to_iomap more useful
Move checking for invalid zero blocks and setting of various iomap flags into this helper. Also make it deal with "raw" delalloc extents to avoid clutter in the callers. 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_pnfs.c')
-rw-r--r--fs/xfs/xfs_pnfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_pnfs.c b/fs/xfs/xfs_pnfs.c
index f44c3599527d..bde2c9f56a46 100644
--- a/fs/xfs/xfs_pnfs.c
+++ b/fs/xfs/xfs_pnfs.c
@@ -185,7 +185,7 @@ xfs_fs_map_blocks(
}
xfs_iunlock(ip, XFS_IOLOCK_EXCL);
- xfs_bmbt_to_iomap(ip, iomap, &imap);
+ error = xfs_bmbt_to_iomap(ip, iomap, &imap, false);
*device_generation = mp->m_generation;
return error;
out_unlock: