diff options
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index c30be2b66580..c341aaf67adb 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h | |||
@@ -11,8 +11,16 @@ | |||
11 | #define __INODE_DOT_H__ | 11 | #define __INODE_DOT_H__ |
12 | 12 | ||
13 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
14 | #include <linux/buffer_head.h> | ||
15 | #include <linux/mm.h> | ||
14 | #include "util.h" | 16 | #include "util.h" |
15 | 17 | ||
18 | extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask); | ||
19 | extern int gfs2_internal_read(struct gfs2_inode *ip, | ||
20 | struct file_ra_state *ra_state, | ||
21 | char *buf, loff_t *pos, unsigned size); | ||
22 | extern void gfs2_set_aops(struct inode *inode); | ||
23 | |||
16 | static inline int gfs2_is_stuffed(const struct gfs2_inode *ip) | 24 | static inline int gfs2_is_stuffed(const struct gfs2_inode *ip) |
17 | { | 25 | { |
18 | return !ip->i_height; | 26 | return !ip->i_height; |
@@ -73,30 +81,26 @@ static inline void gfs2_inum_out(const struct gfs2_inode *ip, | |||
73 | } | 81 | } |
74 | 82 | ||
75 | 83 | ||
76 | void gfs2_set_iop(struct inode *inode); | 84 | extern void gfs2_set_iop(struct inode *inode); |
77 | struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, | 85 | extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, |
78 | u64 no_addr, u64 no_formal_ino, | 86 | u64 no_addr, u64 no_formal_ino, |
79 | int skip_freeing); | 87 | int skip_freeing); |
80 | struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); | 88 | extern struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); |
81 | 89 | ||
82 | int gfs2_inode_refresh(struct gfs2_inode *ip); | 90 | extern int gfs2_inode_refresh(struct gfs2_inode *ip); |
83 | 91 | ||
84 | int gfs2_dinode_dealloc(struct gfs2_inode *inode); | 92 | extern int gfs2_dinode_dealloc(struct gfs2_inode *inode); |
85 | int gfs2_change_nlink(struct gfs2_inode *ip, int diff); | 93 | extern int gfs2_change_nlink(struct gfs2_inode *ip, int diff); |
86 | struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, | 94 | extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, |
87 | int is_root); | 95 | int is_root); |
88 | struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name, | 96 | extern struct inode *gfs2_createi(struct gfs2_holder *ghs, |
89 | unsigned int mode, dev_t dev); | 97 | const struct qstr *name, |
90 | int gfs2_rmdiri(struct gfs2_inode *dip, const struct qstr *name, | 98 | unsigned int mode, dev_t dev); |
91 | struct gfs2_inode *ip); | 99 | extern int gfs2_permission(struct inode *inode, int mask); |
92 | int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, | 100 | extern int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); |
93 | const struct gfs2_inode *ip); | 101 | extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); |
94 | int gfs2_permission(struct inode *inode, int mask); | 102 | extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); |
95 | int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len); | 103 | extern void gfs2_dinode_print(const struct gfs2_inode *ip); |
96 | int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); | ||
97 | struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); | ||
98 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); | ||
99 | void gfs2_dinode_print(const struct gfs2_inode *ip); | ||
100 | 104 | ||
101 | extern const struct inode_operations gfs2_file_iops; | 105 | extern const struct inode_operations gfs2_file_iops; |
102 | extern const struct inode_operations gfs2_dir_iops; | 106 | extern const struct inode_operations gfs2_dir_iops; |