diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-01 13:23:29 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:17 -0500 |
commit | 2933f9254a6af33db25270778c998a42029da668 (patch) | |
tree | 75dc8b32c901995352b0538607f2636cd2834a1d /fs/gfs2/ondisk.c | |
parent | b60623c238b6a819bd04090139704e2cb57a751f (diff) |
[GFS2] Shrink gfs2_inode (4) - di_uid/di_gid
Remove duplicate di_uid/di_gid fields in favour of using
inode->i_uid/inode->i_gid instead. This saves 8 bytes.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r-- | fs/gfs2/ondisk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index 6b50a5731a51..e224f6a22641 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -162,8 +162,8 @@ void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) | |||
162 | gfs2_inum_out(&ip->i_num, &str->di_num); | 162 | gfs2_inum_out(&ip->i_num, &str->di_num); |
163 | 163 | ||
164 | str->di_mode = cpu_to_be32(ip->i_inode.i_mode); | 164 | str->di_mode = cpu_to_be32(ip->i_inode.i_mode); |
165 | str->di_uid = cpu_to_be32(di->di_uid); | 165 | str->di_uid = cpu_to_be32(ip->i_inode.i_uid); |
166 | str->di_gid = cpu_to_be32(di->di_gid); | 166 | str->di_gid = cpu_to_be32(ip->i_inode.i_gid); |
167 | str->di_nlink = cpu_to_be32(di->di_nlink); | 167 | str->di_nlink = cpu_to_be32(di->di_nlink); |
168 | str->di_size = cpu_to_be64(di->di_size); | 168 | str->di_size = cpu_to_be64(di->di_size); |
169 | str->di_blocks = cpu_to_be64(di->di_blocks); | 169 | str->di_blocks = cpu_to_be64(di->di_blocks); |
@@ -191,8 +191,6 @@ void gfs2_dinode_print(const struct gfs2_inode *ip) | |||
191 | 191 | ||
192 | gfs2_inum_print(&ip->i_num); | 192 | gfs2_inum_print(&ip->i_num); |
193 | 193 | ||
194 | pv(di, di_uid, "%u"); | ||
195 | pv(di, di_gid, "%u"); | ||
196 | pv(di, di_nlink, "%u"); | 194 | pv(di, di_nlink, "%u"); |
197 | printk(KERN_INFO " di_size = %llu\n", (unsigned long long)di->di_size); | 195 | printk(KERN_INFO " di_size = %llu\n", (unsigned long long)di->di_size); |
198 | printk(KERN_INFO " di_blocks = %llu\n", (unsigned long long)di->di_blocks); | 196 | printk(KERN_INFO " di_blocks = %llu\n", (unsigned long long)di->di_blocks); |