gfs2: Stop using GFS2_BASIC_BLOCK and GFS2_BASIC_BLOCK_SHIFT
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 21 Oct 2023 19:59:03 +0000 (21:59 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 23 Oct 2023 09:47:13 +0000 (11:47 +0200)
commit1358706907d89e798e6c8930f82b210edc3c3a0c
tree54424fa341b033a1890be198d65da298ae70e70c
parent2d8d7990619878a848b1d916c2f936d3012ee17d
gfs2: Stop using GFS2_BASIC_BLOCK and GFS2_BASIC_BLOCK_SHIFT

Header gfs2_ondisk.h defines GFS2_BASIC_BLOCK and GFS2_BASIC_BLOCK_SHIFT
in a misguided attempt to abstract away the fact that sectors on block
devices are 512 or (1 << 9) bytes in size.  Stop using those definitions.

I would be inclinded to remove those definitions altogether, but the
gfs2 user-space tools are using them.

In addition, instead of GFS2_SB(inode)->sd_sb.sb_bsize_shift, simply use
inode->i_blkbits.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Andrew Price <anprice@redhat.com>
fs/gfs2/inode.h
fs/gfs2/ops_fstype.c