diff options
author | Bob Peterson <rpeterso@redhat.com> | 2019-12-13 08:10:51 -0600 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2020-01-07 18:46:06 +0100 |
commit | 2e9eeaa1175112ac494ba3c2ea4b71b1febeb6ab (patch) | |
tree | 59466b5246f6082416ad40f27b3a27bab38529c4 /fs/gfs2/log.h | |
parent | eed0f953b90e86e765197a1dad06bb48aedc27fe (diff) | |
download | talos-op-linux-2e9eeaa1175112ac494ba3c2ea4b71b1febeb6ab.tar.gz talos-op-linux-2e9eeaa1175112ac494ba3c2ea4b71b1febeb6ab.zip |
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>
Diffstat (limited to 'fs/gfs2/log.h')
-rw-r--r-- | fs/gfs2/log.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/log.h b/fs/gfs2/log.h index 2ff163a8dce1..c0a65e5a126b 100644 --- a/fs/gfs2/log.h +++ b/fs/gfs2/log.h @@ -60,9 +60,9 @@ static inline void gfs2_ordered_add_inode(struct gfs2_inode *ip) spin_unlock(&sdp->sd_ordered_lock); } } + extern void gfs2_ordered_del_inode(struct gfs2_inode *ip); -extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct, - unsigned int ssize); +extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct); extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks); extern int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks); |