diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-05-31 11:31:56 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-01 12:53:59 -0700 |
commit | a7bcb147fef39054fe324a1a988470f5da127196 (patch) | |
tree | be9978bafb04bbd0d9b6df28124dbf97b15a54fe /fs/xfs/libxfs/xfs_inode_buf.c | |
parent | 8124c8a6b35386f73523d27eacb71b5364a68c4c (diff) |
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 <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_buf.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c index f3254a4f4cb4..04ce361688f7 100644 --- a/fs/xfs/libxfs/xfs_inode_buf.c +++ b/fs/xfs/libxfs/xfs_inode_buf.c @@ -612,7 +612,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; |