]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
gfs2: eliminate ssize parameter from gfs2_struct2blk
authorBob Peterson <rpeterso@redhat.com>
Fri, 13 Dec 2019 14:10:51 +0000 (08:10 -0600)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 7 Jan 2020 17:46:06 +0000 (18:46 +0100)
commit2e9eeaa1175112ac494ba3c2ea4b71b1febeb6ab
tree59466b5246f6082416ad40f27b3a27bab38529c4
parenteed0f953b90e86e765197a1dad06bb48aedc27fe
gfs2: eliminate ssize parameter from gfs2_struct2blk

Every caller of function gfs2_struct2blk specified sizeof(u64).

This patch eliminates the unnecessary parameter and replaces the
size calculation with a new superblock variable that is computed
to be the maximum number of block pointers we can fit inside a
log descriptor, as is done for pointers per dinode and indirect
block.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/log.h
fs/gfs2/lops.c
fs/gfs2/ops_fstype.c
fs/gfs2/trans.c