diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-04-16 19:25:21 +0300 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-04-16 19:25:21 +0300 |
commit | 9a38662ba4e2682f3f3e9f3ce02a243b837aa8c6 (patch) | |
tree | 04e48c2048033df4b4ba399fd922405c9bb1ac6c /fs/gfs2/incore.h | |
parent | 16e205cf42da1f497b10a4a24f563e6c0d574eec (diff) | |
download | linux-9a38662ba4e2682f3f3e9f3ce02a243b837aa8c6.tar.xz |
gfs2: Remove sdp->sd_jheightsize
GFS2 keeps two arrarys in the superblock that define the maximum size of
an inode depending on the inode's height: sdp->sd_heightsize defines the
heights in units of sb->s_blocksize; sdp->sd_jheightsize defines them in
units of sb->s_blocksize - sizeof(struct gfs2_meta_header). These
arrays are used to determine when additional layers of indirect blocks
are needed. The second array is used for directories which have an
additional gfs2_meta_header at the beginning of each block.
Distinguishing between these two cases makes no sense: the height
required for representing N blocks will come out the same no matter if
the calculation is done in gross (sb->s_blocksize) or net
(sb->s_blocksize - sizeof(struct gfs2_meta_header)) units.
Stuffed directories don't have an additional gfs2_meta_header, but the
stuffed case is handled separately for both files and directories,
anyway.
Remove the unncessary sdp->sd_jheightsize array.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 1b6b1e3f5caf..0bbbaa9b05cb 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -696,8 +696,6 @@ struct gfs2_sbd { u32 sd_max_dirres; /* Max blocks needed to add a directory entry */ u32 sd_max_height; /* Max height of a file's metadata tree */ u64 sd_heightsize[GFS2_MAX_META_HEIGHT + 1]; - u32 sd_max_jheight; /* Max height of journaled file's meta tree */ - u64 sd_jheightsize[GFS2_MAX_META_HEIGHT + 1]; u32 sd_max_dents_per_leaf; /* Max number of dirents in a leaf block */ struct gfs2_args sd_args; /* Mount arguments */ |