aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gfs2_ondisk.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-10-13 22:51:24 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:33:32 -0500
commit629a21e7ecedf779c68dcaa9a186069f57a7c652 (patch)
treeaff577cb9d1d3cf42ddb16f4552411d08e5cdc51 /include/linux/gfs2_ondisk.h
parent1e81c4c3e0f55c95b6278a827262b80debd0dc7e (diff)
[GFS2] split and annotate gfs2_inum
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux/gfs2_ondisk.h')
-rw-r--r--include/linux/gfs2_ondisk.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index 7dd5e4c18a66..b16df6e8f55c 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -54,8 +54,13 @@ struct gfs2_inum {
54 __be64 no_addr; 54 __be64 no_addr;
55}; 55};
56 56
57static inline int gfs2_inum_equal(const struct gfs2_inum *ino1, 57struct gfs2_inum_host {
58 const struct gfs2_inum *ino2) 58 __u64 no_formal_ino;
59 __u64 no_addr;
60};
61
62static inline int gfs2_inum_equal(const struct gfs2_inum_host *ino1,
63 const struct gfs2_inum_host *ino2)
59{ 64{
60 return ino1->no_formal_ino == ino2->no_formal_ino && 65 return ino1->no_formal_ino == ino2->no_formal_ino &&
61 ino1->no_addr == ino2->no_addr; 66 ino1->no_addr == ino2->no_addr;
@@ -143,8 +148,8 @@ struct gfs2_sb_host {
143 __u32 sb_bsize; 148 __u32 sb_bsize;
144 __u32 sb_bsize_shift; 149 __u32 sb_bsize_shift;
145 150
146 struct gfs2_inum sb_master_dir; /* Was jindex dinode in gfs1 */ 151 struct gfs2_inum_host sb_master_dir; /* Was jindex dinode in gfs1 */
147 struct gfs2_inum sb_root_dir; 152 struct gfs2_inum_host sb_root_dir;
148 153
149 char sb_lockproto[GFS2_LOCKNAME_LEN]; 154 char sb_lockproto[GFS2_LOCKNAME_LEN];
150 char sb_locktable[GFS2_LOCKNAME_LEN]; 155 char sb_locktable[GFS2_LOCKNAME_LEN];
@@ -313,7 +318,7 @@ struct gfs2_dinode {
313struct gfs2_dinode_host { 318struct gfs2_dinode_host {
314 struct gfs2_meta_header_host di_header; 319 struct gfs2_meta_header_host di_header;
315 320
316 struct gfs2_inum di_num; 321 struct gfs2_inum_host di_num;
317 322
318 __u32 di_mode; /* mode of file */ 323 __u32 di_mode; /* mode of file */
319 __u32 di_uid; /* owner's user id */ 324 __u32 di_uid; /* owner's user id */
@@ -503,8 +508,8 @@ struct gfs2_quota_change {
503#ifdef __KERNEL__ 508#ifdef __KERNEL__
504/* Translation functions */ 509/* Translation functions */
505 510
506extern void gfs2_inum_in(struct gfs2_inum *no, const void *buf); 511extern void gfs2_inum_in(struct gfs2_inum_host *no, const void *buf);
507extern void gfs2_inum_out(const struct gfs2_inum *no, void *buf); 512extern void gfs2_inum_out(const struct gfs2_inum_host *no, void *buf);
508extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf); 513extern void gfs2_sb_in(struct gfs2_sb_host *sb, const void *buf);
509extern void gfs2_rindex_in(struct gfs2_rindex_host *ri, const void *buf); 514extern void gfs2_rindex_in(struct gfs2_rindex_host *ri, const void *buf);
510extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf); 515extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf);