aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-02-01 04:23:44 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2008-03-31 05:40:31 -0400
commit9a0045088d888c9c539c8c626a366cb52c0fbdab (patch)
treeeac1d44330603c08dddf397fc46484f97a69a11e /fs/gfs2/incore.h
parentcf45b752c9f23939e40d823b0600bf876e97b0e0 (diff)
[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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index e9c58dc76869..9dfdde3612a4 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -246,7 +246,6 @@ struct gfs2_dinode_host {
246 u64 di_generation; /* generation number for NFS */ 246 u64 di_generation; /* generation number for NFS */
247 u32 di_flags; /* GFS2_DIF_... */ 247 u32 di_flags; /* GFS2_DIF_... */
248 /* These only apply to directories */ 248 /* These only apply to directories */
249 u16 di_depth; /* Number of bits in the table */
250 u32 di_entries; /* The number of entries in the directory */ 249 u32 di_entries; /* The number of entries in the directory */
251 u64 di_eattr; /* extended attribute block number */ 250 u64 di_eattr; /* extended attribute block number */
252}; 251};
@@ -267,6 +266,7 @@ struct gfs2_inode {
267 266
268 struct rw_semaphore i_rw_mutex; 267 struct rw_semaphore i_rw_mutex;
269 u8 i_height; 268 u8 i_height;
269 u8 i_depth;
270}; 270};
271 271
272/* 272/*