diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-05-09 09:11:40 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-05-09 11:45:38 -0400 |
commit | 9eed04cd99b0a497cf0da22658808a7f5b10d734 (patch) | |
tree | 42d8655ac9523ddd19bda5621de58b22a2a1de07 /fs/gfs2/inode.c | |
parent | 194c011fc4650d0dd1eecbc35bc26045108aca51 (diff) |
GFS2: Move final part of inode.c into super.c
Now inode.c is empty.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index b95ee5dc46ca..9076fbe23416 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -36,39 +36,3 @@ | |||
36 | #include "util.h" | 36 | #include "util.h" |
37 | 37 | ||
38 | 38 | ||
39 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) | ||
40 | { | ||
41 | struct gfs2_dinode *str = buf; | ||
42 | |||
43 | str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); | ||
44 | str->di_header.mh_type = cpu_to_be32(GFS2_METATYPE_DI); | ||
45 | str->di_header.mh_format = cpu_to_be32(GFS2_FORMAT_DI); | ||
46 | str->di_num.no_addr = cpu_to_be64(ip->i_no_addr); | ||
47 | str->di_num.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino); | ||
48 | str->di_mode = cpu_to_be32(ip->i_inode.i_mode); | ||
49 | str->di_uid = cpu_to_be32(ip->i_inode.i_uid); | ||
50 | str->di_gid = cpu_to_be32(ip->i_inode.i_gid); | ||
51 | str->di_nlink = cpu_to_be32(ip->i_inode.i_nlink); | ||
52 | str->di_size = cpu_to_be64(i_size_read(&ip->i_inode)); | ||
53 | str->di_blocks = cpu_to_be64(gfs2_get_inode_blocks(&ip->i_inode)); | ||
54 | str->di_atime = cpu_to_be64(ip->i_inode.i_atime.tv_sec); | ||
55 | str->di_mtime = cpu_to_be64(ip->i_inode.i_mtime.tv_sec); | ||
56 | str->di_ctime = cpu_to_be64(ip->i_inode.i_ctime.tv_sec); | ||
57 | |||
58 | str->di_goal_meta = cpu_to_be64(ip->i_goal); | ||
59 | str->di_goal_data = cpu_to_be64(ip->i_goal); | ||
60 | str->di_generation = cpu_to_be64(ip->i_generation); | ||
61 | |||
62 | str->di_flags = cpu_to_be32(ip->i_diskflags); | ||
63 | str->di_height = cpu_to_be16(ip->i_height); | ||
64 | str->di_payload_format = cpu_to_be32(S_ISDIR(ip->i_inode.i_mode) && | ||
65 | !(ip->i_diskflags & GFS2_DIF_EXHASH) ? | ||
66 | GFS2_FORMAT_DE : 0); | ||
67 | str->di_depth = cpu_to_be16(ip->i_depth); | ||
68 | str->di_entries = cpu_to_be32(ip->i_entries); | ||
69 | |||
70 | str->di_eattr = cpu_to_be64(ip->i_eattr); | ||
71 | str->di_atime_nsec = cpu_to_be32(ip->i_inode.i_atime.tv_nsec); | ||
72 | str->di_mtime_nsec = cpu_to_be32(ip->i_inode.i_mtime.tv_nsec); | ||
73 | str->di_ctime_nsec = cpu_to_be32(ip->i_inode.i_ctime.tv_nsec); | ||
74 | } | ||