diff options
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index 05fc095d8540..35375fc43fa3 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h | |||
@@ -38,6 +38,14 @@ static inline int gfs2_check_inum(const struct gfs2_inode *ip, u64 no_addr, | |||
38 | return ip->i_no_addr == no_addr && ip->i_no_formal_ino == no_formal_ino; | 38 | return ip->i_no_addr == no_addr && ip->i_no_formal_ino == no_formal_ino; |
39 | } | 39 | } |
40 | 40 | ||
41 | static inline void gfs2_inum_out(const struct gfs2_inode *ip, | ||
42 | struct gfs2_dirent *dent) | ||
43 | { | ||
44 | dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino); | ||
45 | dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr); | ||
46 | } | ||
47 | |||
48 | |||
41 | void gfs2_inode_attr_in(struct gfs2_inode *ip); | 49 | void gfs2_inode_attr_in(struct gfs2_inode *ip); |
42 | struct inode *gfs2_inode_lookup(struct super_block *sb, u64 no_addr, unsigned type); | 50 | struct inode *gfs2_inode_lookup(struct super_block *sb, u64 no_addr, unsigned type); |
43 | struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); | 51 | struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); |
@@ -59,6 +67,8 @@ int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len); | |||
59 | int gfs2_glock_nq_atime(struct gfs2_holder *gh); | 67 | int gfs2_glock_nq_atime(struct gfs2_holder *gh); |
60 | int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); | 68 | int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); |
61 | struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); | 69 | struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); |
70 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); | ||
71 | void gfs2_dinode_print(const struct gfs2_inode *ip); | ||
62 | 72 | ||
63 | #endif /* __INODE_DOT_H__ */ | 73 | #endif /* __INODE_DOT_H__ */ |
64 | 74 | ||