aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-05-22 05:01:55 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2009-05-22 05:01:55 -0400
commitb1e71b0622974953e46a284aa986504a90869a9b (patch)
tree0eb0f68c8b432b6332437e918ca2ab4e0c72d897 /fs/gfs2/inode.h
parent1ce97e564b628bee30b8dbb64e5e653a484308f6 (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.h57
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
18extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask);
19extern int gfs2_internal_read(struct gfs2_inode *ip,
20 struct file_ra_state *ra_state,
21 char *buf, loff_t *pos, unsigned size);
22extern void gfs2_set_aops(struct inode *inode);
23
16static inline int gfs2_is_stuffed(const struct gfs2_inode *ip) 24static 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
76void gfs2_set_iop(struct inode *inode); 84extern void gfs2_set_iop(struct inode *inode);
77struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, 85extern 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);
80struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); 88extern struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr);
81 89
82int gfs2_inode_refresh(struct gfs2_inode *ip); 90extern int gfs2_inode_refresh(struct gfs2_inode *ip);
83 91
84int gfs2_dinode_dealloc(struct gfs2_inode *inode); 92extern int gfs2_dinode_dealloc(struct gfs2_inode *inode);
85int gfs2_change_nlink(struct gfs2_inode *ip, int diff); 93extern int gfs2_change_nlink(struct gfs2_inode *ip, int diff);
86struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, 94extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
87 int is_root); 95 int is_root);
88struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name, 96extern struct inode *gfs2_createi(struct gfs2_holder *ghs,
89 unsigned int mode, dev_t dev); 97 const struct qstr *name,
90int gfs2_rmdiri(struct gfs2_inode *dip, const struct qstr *name, 98 unsigned int mode, dev_t dev);
91 struct gfs2_inode *ip); 99extern int gfs2_rmdiri(struct gfs2_inode *dip, const struct qstr *name,
92int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, 100 struct gfs2_inode *ip);
93 const struct gfs2_inode *ip); 101extern int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
94int gfs2_permission(struct inode *inode, int mask); 102 const struct gfs2_inode *ip);
95int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len); 103extern int gfs2_permission(struct inode *inode, int mask);
96int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr); 104extern int gfs2_readlinki(struct gfs2_inode *ip, char **buf, unsigned int *len);
97struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); 105extern int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr);
98void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); 106extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
99void gfs2_dinode_print(const struct gfs2_inode *ip); 107extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
108extern void gfs2_dinode_print(const struct gfs2_inode *ip);
100 109
101extern const struct inode_operations gfs2_file_iops; 110extern const struct inode_operations gfs2_file_iops;
102extern const struct inode_operations gfs2_dir_iops; 111extern const struct inode_operations gfs2_dir_iops;