diff options
author | Christoph Hellwig <hch@lst.de> | 2019-02-18 18:38:46 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-21 16:55:07 +0100 |
commit | 16be1433737ee46f88da57d47f594c4fc1376538 (patch) | |
tree | 8f4ff2caae746ae965a7fca52b7a1e6c8a4620bd /fs/xfs/xfs_pnfs.c | |
parent | xfs: fix xfs_buf magic number endian checks (diff) | |
download | linux-16be1433737ee46f88da57d47f594c4fc1376538.tar.xz 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 '')
-rw-r--r-- | fs/xfs/xfs_pnfs.c | 2 |
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: |