aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ondisk.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-10-31 21:45:08 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:34:11 -0500
commite7f14f4d094ea1a9ce1953375f5bc1500c760c79 (patch)
treeda539b26dedd351ecb591e7ccb571b94a679452e /fs/gfs2/ondisk.c
parentaf339c0241d0dd3b35f9097b4f4999bb22ffe502 (diff)
[GFS2] Shrink gfs2_inode (2) - di_major/di_minor
This removes the device numbers from this structure by using inode->i_rdev instead. It also cleans up the code in gfs2_mknod. It results in shrinking the gfs2_inode by 8 bytes. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r--fs/gfs2/ondisk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index 4bc590edb60e..60dd943761ab 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -170,8 +170,6 @@ void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf)
170 str->di_atime = cpu_to_be64(di->di_atime); 170 str->di_atime = cpu_to_be64(di->di_atime);
171 str->di_mtime = cpu_to_be64(di->di_mtime); 171 str->di_mtime = cpu_to_be64(di->di_mtime);
172 str->di_ctime = cpu_to_be64(di->di_ctime); 172 str->di_ctime = cpu_to_be64(di->di_ctime);
173 str->di_major = cpu_to_be32(di->di_major);
174 str->di_minor = cpu_to_be32(di->di_minor);
175 173
176 str->di_goal_meta = cpu_to_be64(di->di_goal_meta); 174 str->di_goal_meta = cpu_to_be64(di->di_goal_meta);
177 str->di_goal_data = cpu_to_be64(di->di_goal_data); 175 str->di_goal_data = cpu_to_be64(di->di_goal_data);
@@ -202,8 +200,6 @@ void gfs2_dinode_print(const struct gfs2_inode *ip)
202 printk(KERN_INFO " di_atime = %lld\n", (long long)di->di_atime); 200 printk(KERN_INFO " di_atime = %lld\n", (long long)di->di_atime);
203 printk(KERN_INFO " di_mtime = %lld\n", (long long)di->di_mtime); 201 printk(KERN_INFO " di_mtime = %lld\n", (long long)di->di_mtime);
204 printk(KERN_INFO " di_ctime = %lld\n", (long long)di->di_ctime); 202 printk(KERN_INFO " di_ctime = %lld\n", (long long)di->di_ctime);
205 pv(di, di_major, "%u");
206 pv(di, di_minor, "%u");
207 203
208 printk(KERN_INFO " di_goal_meta = %llu\n", (unsigned long long)di->di_goal_meta); 204 printk(KERN_INFO " di_goal_meta = %llu\n", (unsigned long long)di->di_goal_meta);
209 printk(KERN_INFO " di_goal_data = %llu\n", (unsigned long long)di->di_goal_data); 205 printk(KERN_INFO " di_goal_data = %llu\n", (unsigned long long)di->di_goal_data);