]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: pass the mapping flags to xfs_bmbt_to_iomap
authorChristoph Hellwig <hch@lst.de>
Fri, 6 May 2022 19:22:34 +0000 (15:22 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 6 May 2022 19:22:34 +0000 (15:22 -0400)
Source kernel commit: 740fd671e04f8a977018eb9cfe440b4817850f0d

To prepare for looking at the IOMAP_DAX flag in xfs_bmbt_to_iomap pass in
the input mapping flags to xfs_bmbt_to_iomap.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-24-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c

index d4fec7355768190a27014b55741aabafe2152d50..12028efbf802f54c7695d23dd412f43dac894ef7 100644 (file)
@@ -66,8 +66,8 @@ extern struct kmem_cache *xfs_inode_cache;
 extern struct kmem_cache *xfs_trans_cache;
 
 /* fake up iomap, (not) used in xfs_bmap.[ch] */
-#define IOMAP_F_SHARED                 0x04
-#define xfs_bmbt_to_iomap(a, b, c, d)  ((void) 0)
+#define IOMAP_F_SHARED                         0x04
+#define xfs_bmbt_to_iomap(a, b, c, d, e)       ((void) 0)
 
 /* CRC stuff, buffer API dependent on it */
 #define crc32c(c,p,l)  crc32c_le((c),(unsigned char const *)(p),(l))
index 8906265a7dd287d28441641328e1c287e88a7c4c..3d34b886a3cdd4a234cbb52598e632a9b479e422 100644 (file)
@@ -4544,7 +4544,7 @@ xfs_bmapi_convert_delalloc(
         * the extent.  Just return the real extent at this offset.
         */
        if (!isnullstartblock(bma.got.br_startblock)) {
-               xfs_bmbt_to_iomap(ip, iomap, &bma.got, flags);
+               xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags);
                *seq = READ_ONCE(ifp->if_seq);
                goto out_trans_cancel;
        }
@@ -4591,7 +4591,7 @@ xfs_bmapi_convert_delalloc(
        XFS_STATS_INC(mp, xs_xstrat_quick);
 
        ASSERT(!isnullstartblock(bma.got.br_startblock));
-       xfs_bmbt_to_iomap(ip, iomap, &bma.got, flags);
+       xfs_bmbt_to_iomap(ip, iomap, &bma.got, 0, flags);
        *seq = READ_ONCE(ifp->if_seq);
 
        if (whichfork == XFS_COW_FORK)