aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-11-01 20:09:14 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:34:26 -0500
commita9583c7983cbba9726bfe64ee46613d654fc9e26 (patch)
tree37a23321b8254499e48f93bc65d946ab47547fa4 /fs/gfs2/inode.c
parent1a7b1eed5802502fd649e04784becd58557fdcf1 (diff)
[GFS2] Shrink gfs2_inode (7) - di_payload_format
This is almost never used. Its there for backward compatibility with GFS1. It doesn't need its own field since it can always be calculated from the inode mode & flags. This saves a bit more space in the gfs2_inode. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index c22ae3c3a444..f6177fc68320 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -210,7 +210,6 @@ static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
210 di->di_generation = be64_to_cpu(str->di_generation); 210 di->di_generation = be64_to_cpu(str->di_generation);
211 211
212 di->di_flags = be32_to_cpu(str->di_flags); 212 di->di_flags = be32_to_cpu(str->di_flags);
213 di->di_payload_format = be32_to_cpu(str->di_payload_format);
214 di->di_height = be16_to_cpu(str->di_height); 213 di->di_height = be16_to_cpu(str->di_height);
215 214
216 di->di_depth = be16_to_cpu(str->di_depth); 215 di->di_depth = be16_to_cpu(str->di_depth);
@@ -699,7 +698,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
699 } 698 }
700 699
701 di->__pad1 = 0; 700 di->__pad1 = 0;
702 di->di_payload_format = cpu_to_be32(0); 701 di->di_payload_format = cpu_to_be32(S_ISDIR(mode) ? GFS2_FORMAT_DE : 0);
703 di->di_height = cpu_to_be32(0); 702 di->di_height = cpu_to_be32(0);
704 di->__pad2 = 0; 703 di->__pad2 = 0;
705 di->__pad3 = 0; 704 di->__pad3 = 0;