From: Darrick J. Wong Date: Mon, 12 Jul 2021 21:58:13 +0000 (-0700) Subject: xfs: clean up open-coded fs block unit conversions X-Git-Tag: libxfs-5.14-sync_2021-07-28~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d72311ddf1633e061c0e5e15a031ee2c2ce497f;p=thirdparty%2Fxfsprogs-dev.git xfs: clean up open-coded fs block unit conversions Source kernel commit: a7bcb147fef39054fe324a1a988470f5da127196 Replace some open-coded fs block unit conversions with the standard conversion macro. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Reviewed-by: Carlos Maiolino Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index a9ed7f246..70caf6e76 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -609,7 +609,7 @@ xfs_inode_validate_extsize( */ if (rt_flag) - blocksize_bytes = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog; + blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); else blocksize_bytes = mp->m_sb.sb_blocksize;