As per Christoph's patch:
http://www.kernel.org/git/?p=linux/kernel/git/steve/gfs2-2.6.git;a=commitdiff;h=
f5e54d6e53a20cef45af7499e86164f0e0d16bb2
We mark struct address_space_operations const in GFS2.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
return try_to_free_buffers(page);
}
-static struct address_space_operations aspace_aops = {
+static const struct address_space_operations aspace_aops = {
.writepage = gfs2_aspace_writepage,
.releasepage = gfs2_aspace_releasepage,
};
DIO_OWN_LOCKING);
}
-struct address_space_operations gfs2_file_aops = {
+const struct address_space_operations gfs2_file_aops = {
.writepage = gfs2_writepage,
.readpage = gfs2_readpage,
.readpages = gfs2_readpages,
#ifndef __OPS_ADDRESS_DOT_H__
#define __OPS_ADDRESS_DOT_H__
-extern struct address_space_operations gfs2_file_aops;
+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);