From: Darrick J. Wong Date: Fri, 21 May 2021 21:01:07 +0000 (-0700) Subject: xfs: clean up open-coded fs block unit conversions X-Git-Tag: libxfs-5.14-sync_2021-07-02~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94eef77fde34987e1d5c1e6808d15d59e4ac5983;p=xfsprogs-dev.git xfs: clean up open-coded fs block unit conversions Replace some open-coded fs block unit conversions with the standard conversion macro. Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index a9ed7f24..70caf6e7 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;