diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-05-22 05:01:55 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-05-22 05:01:55 -0400 |
commit | b1e71b0622974953e46a284aa986504a90869a9b (patch) | |
tree | 0eb0f68c8b432b6332437e918ca2ab4e0c72d897 /fs/gfs2/inode.h | |
parent | 1ce97e564b628bee30b8dbb64e5e653a484308f6 (diff) |
GFS2: Clean up some file names
This patch renames the ops_*.c files which have no counterpart
without the ops_ prefix in order to shorten the name and make
it more readable. In addition, ops_address.h (which was very
small) is moved into inode.h and inode.h is cleaned up by
adding extern where required.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index c30be2b66580..2c3ec072d60e 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,31 @@ 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_rmdiri(struct gfs2_inode *dip, const struct qstr *name, |
92 | int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, | 100 | struct gfs2_inode *ip); |
93 | const struct gfs2_inode *ip); | 101 | extern int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, |
94 | int gfs2_permission(struct inode *inode, int mask); | 102 | const struct gfs2_inode *ip); |
95 | int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len); | 103 | extern int gfs2_permission(struct inode *inode, int mask); |
96 | int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); | 104 | extern int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len); |
97 | struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); | 105 | extern int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); |
98 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); | 106 | extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); |
99 | void gfs2_dinode_print(const struct gfs2_inode *ip); | 107 | extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); |
108 | extern void gfs2_dinode_print(const struct gfs2_inode *ip); | ||
100 | 109 | ||
101 | extern const struct inode_operations gfs2_file_iops; | 110 | extern const struct inode_operations gfs2_file_iops; |
102 | extern const struct inode_operations gfs2_dir_iops; | 111 | extern const struct inode_operations gfs2_dir_iops; |