aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-07-03 13:37:30 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-03 13:37:30 -0400
commit66de045d9fe6147b065c47236d3b9d8d8a6cbd57 (patch)
tree3b9878eef16ddb60bf3daf9f17c1fa5b6bed105a /fs/gfs2
parent0c0834a30cceeaf2748705d2b31f0d058693b716 (diff)
[GFS2] Make our address_space_operations const
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/meta_io.c2
-rw-r--r--fs/gfs2/ops_address.c2
-rw-r--r--fs/gfs2/ops_address.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 2523d42a02de..ddcd4dc1081d 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -159,7 +159,7 @@ static int gfs2_aspace_releasepage(struct page *page, gfp_t gfp_mask)
159 return try_to_free_buffers(page); 159 return try_to_free_buffers(page);
160} 160}
161 161
162static struct address_space_operations aspace_aops = { 162static const struct address_space_operations aspace_aops = {
163 .writepage = gfs2_aspace_writepage, 163 .writepage = gfs2_aspace_writepage,
164 .releasepage = gfs2_aspace_releasepage, 164 .releasepage = gfs2_aspace_releasepage,
165}; 165};
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 207363aed112..26db3335d4b3 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -655,7 +655,7 @@ static ssize_t gfs2_direct_IO(int rw, struct kiocb *iocb,
655 DIO_OWN_LOCKING); 655 DIO_OWN_LOCKING);
656} 656}
657 657
658struct address_space_operations gfs2_file_aops = { 658const struct address_space_operations gfs2_file_aops = {
659 .writepage = gfs2_writepage, 659 .writepage = gfs2_writepage,
660 .readpage = gfs2_readpage, 660 .readpage = gfs2_readpage,
661 .readpages = gfs2_readpages, 661 .readpages = gfs2_readpages,
diff --git a/fs/gfs2/ops_address.h b/fs/gfs2/ops_address.h
index b88adddaffb2..a7ef3bf36f3e 100644
--- a/fs/gfs2/ops_address.h
+++ b/fs/gfs2/ops_address.h
@@ -10,7 +10,7 @@
10#ifndef __OPS_ADDRESS_DOT_H__ 10#ifndef __OPS_ADDRESS_DOT_H__
11#define __OPS_ADDRESS_DOT_H__ 11#define __OPS_ADDRESS_DOT_H__
12 12
13extern struct address_space_operations gfs2_file_aops; 13extern const struct address_space_operations gfs2_file_aops;
14extern int gfs2_get_block(struct inode *inode, sector_t lblock, 14extern int gfs2_get_block(struct inode *inode, sector_t lblock,
15 struct buffer_head *bh_result, int create); 15 struct buffer_head *bh_result, int create);
16 16