aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/ops_file.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-07-03 13:47:02 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-03 13:47:02 -0400
commitb0dd9308b703310e9a988df70f6ed3e87cb55655 (patch)
tree29246307448a15748c226bed80c1939b0e200e2e /fs/gfs2/ops_file.c
parent66de045d9fe6147b065c47236d3b9d8d8a6cbd57 (diff)
[GFS2] Mark file_operations const
As per Arjan's patches: http://www.kernel.org/git/?p=linux/kernel/git/steve/gfs2-2.6.git;a=commitdiff;h=99ac48f54a91d02140c497edc31dc57d4bc5c85d and http://www.kernel.org/git/?p=linux/kernel/git/steve/gfs2-2.6.git;a=commitdiff;h=4b6f5d20b04dcbc3d888555522b90ba6d36c4106 make the GFS2 file_operations structures const. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_file.c')
-rw-r--r--fs/gfs2/ops_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c
index ecef76e8373..c8e2c98700a 100644
--- a/fs/gfs2/ops_file.c
+++ b/fs/gfs2/ops_file.c
@@ -950,7 +950,7 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
return do_flock(file, cmd, fl);
}
-struct file_operations gfs2_file_fops = {
+const struct file_operations gfs2_file_fops = {
.llseek = gfs2_llseek,
.read = gfs2_read,
.readv = gfs2_file_readv,
@@ -970,7 +970,7 @@ struct file_operations gfs2_file_fops = {
.splice_write = generic_file_splice_write,
};
-struct file_operations gfs2_dir_fops = {
+const struct file_operations gfs2_dir_fops = {
.readdir = gfs2_readdir,
.unlocked_ioctl = gfs2_ioctl,
.open = gfs2_open,