]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[GFS2] Make our address_space_operations const
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jul 2006 17:37:30 +0000 (13:37 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jul 2006 17:37:30 +0000 (13:37 -0400)
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>
fs/gfs2/meta_io.c
fs/gfs2/ops_address.c
fs/gfs2/ops_address.h

index 2523d42a02de7da79255e1a253452e1b227782e9..ddcd4dc1081d53437a79a146fb243d594df025c6 100644 (file)
@@ -159,7 +159,7 @@ static int gfs2_aspace_releasepage(struct page *page, gfp_t gfp_mask)
        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,
 };
index 207363aed11216dd7da057e99df07cfbb1142a84..26db3335d4b3b6e22859d549794dcd5a65e50802 100644 (file)
@@ -655,7 +655,7 @@ static ssize_t gfs2_direct_IO(int rw, struct kiocb *iocb,
                                    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,
index b88adddaffb2e9349501458b6a155a675a4bbeaf..a7ef3bf36f3ebcfc327719d9fa844a7e0fe68c3e 100644 (file)
@@ -10,7 +10,7 @@
 #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);