diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2008-02-01 09:23:44 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-03-31 10:40:31 +0100 |
commit | 9a0045088d888c9c539c8c626a366cb52c0fbdab (patch) | |
tree | eac1d44330603c08dddf397fc46484f97a69a11e /fs/gfs2/incore.h | |
parent | cf45b752c9f23939e40d823b0600bf876e97b0e0 (diff) | |
download | linux-3.10-9a0045088d888c9c539c8c626a366cb52c0fbdab.tar.gz linux-3.10-9a0045088d888c9c539c8c626a366cb52c0fbdab.tar.bz2 linux-3.10-9a0045088d888c9c539c8c626a366cb52c0fbdab.zip |
[GFS2] Shrink & rename di_depth
This patch forms a pair with the previous patch which shrunk
di_height. Like that patch di_depth is renamed i_depth and moved
into struct gfs2_inode directly. Also the field goes from 16 bits
to 8 bits since it is also limited to a max value which is rather
small (17 in this case). In addition we also now validate the field
against this maximum value when its read in.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index e9c58dc7686..9dfdde3612a 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -246,7 +246,6 @@ struct gfs2_dinode_host { u64 di_generation; /* generation number for NFS */ u32 di_flags; /* GFS2_DIF_... */ /* These only apply to directories */ - u16 di_depth; /* Number of bits in the table */ u32 di_entries; /* The number of entries in the directory */ u64 di_eattr; /* extended attribute block number */ }; @@ -267,6 +266,7 @@ struct gfs2_inode { struct rw_semaphore i_rw_mutex; u8 i_height; + u8 i_depth; }; /* |