summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_address.h
diff options
context:
space:
mode:
authorSteven Whitehouse2007-10-17 09:47:38 +0200
committerSteven Whitehouse2008-01-25 09:07:23 +0100
commit5561093e2cac9f7d2a77e39cc689b8d2b7f9b2bc (patch)
treeaac1fa3e47604f2d7bb1e4d9e97f41b8ffebe91e /fs/gfs2/ops_address.h
parent[GFS2] Add gfs2_is_writeback() (diff)
downloadkernel-qcow2-linux-5561093e2cac9f7d2a77e39cc689b8d2b7f9b2bc.tar.gz
kernel-qcow2-linux-5561093e2cac9f7d2a77e39cc689b8d2b7f9b2bc.tar.xz
kernel-qcow2-linux-5561093e2cac9f7d2a77e39cc689b8d2b7f9b2bc.zip
[GFS2] Introduce gfs2_set_aops()
Just like ext3 we now have three sets of address space operations to cover the cases of writeback, ordered and journalled data writes. This means that the individual operations can now become less complicated as we are able to remove some of the tests for file data mode from the code. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_address.h')
-rw-r--r--fs/gfs2/ops_address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.h b/fs/gfs2/ops_address.h
index e8fe83fcd583..d3b76d0cdc81 100644
--- a/fs/gfs2/ops_address.h
+++ b/fs/gfs2/ops_address.h
@@ -14,12 +14,12 @@
#include <linux/buffer_head.h>
#include <linux/mm.h>
-extern const struct address_space_operations gfs2_file_aops;
extern int gfs2_get_block(struct inode *inode, sector_t lblock,
struct buffer_head *bh_result, int create);
extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask);
extern int gfs2_internal_read(struct gfs2_inode *ip,
struct file_ra_state *ra_state,
char *buf, loff_t *pos, unsigned size);
+extern void gfs2_set_aops(struct inode *inode);
#endif /* __OPS_ADDRESS_DOT_H__ */