From: Christoph Hellwig Date: Wed, 7 May 2025 21:59:48 +0000 (-0700) Subject: xfs: kill XBF_UNMAPPED X-Git-Tag: v6.15.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94ef61b5bba051b27b94330aa5e14e5609769e07;p=thirdparty%2Fxfsprogs-dev.git xfs: kill XBF_UNMAPPED Source kernel commit: a2f790b28512c22f7cf4f420a99e1b008e7098fe Unmapped buffer access is a pain, so kill it. The switch to large folios means we rarely pay a vmap penalty for large buffers, so this functionality is largely unnecessary now. Signed-off-by: Christoph Hellwig Signed-off-by: Dave Chinner Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index d5f7d28e..48a84a10 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -359,7 +359,6 @@ static inline unsigned long long mask64_if_power2(unsigned long b) /* buffer management */ #define XBF_TRYLOCK 0 -#define XBF_UNMAPPED 0 #define XBF_DONE 0 #define xfs_buf_stale(bp) ((bp)->b_flags |= LIBXFS_B_STALE) #define XFS_BUF_UNDELAYWRITE(bp) ((bp)->b_flags &= ~LIBXFS_B_DIRTY) diff --git a/libxfs/xfs_ialloc.c b/libxfs/xfs_ialloc.c index b401299a..fa9d94ab 100644 --- a/libxfs/xfs_ialloc.c +++ b/libxfs/xfs_ialloc.c @@ -359,7 +359,7 @@ xfs_ialloc_inode_init( (j * M_IGEO(mp)->blocks_per_cluster)); error = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, mp->m_bsize * M_IGEO(mp)->blocks_per_cluster, - XBF_UNMAPPED, &fbuf); + 0, &fbuf); if (error) return error; diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 5ca75346..4eca3d6d 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -134,7 +134,7 @@ xfs_imap_to_bp( int error; error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, - imap->im_len, XBF_UNMAPPED, bpp, &xfs_inode_buf_ops); + imap->im_len, 0, bpp, &xfs_inode_buf_ops); if (xfs_metadata_is_sick(error)) xfs_agno_mark_sick(mp, xfs_daddr_to_agno(mp, imap->im_blkno), XFS_SICK_AG_INODES);