diff options
-rw-r--r-- | fs/gfs2/ops_file.c | 4 | ||||
-rw-r--r-- | fs/gfs2/ops_file.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index ecef76e8373a..c8e2c98700a7 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) | |||
950 | return do_flock(file, cmd, fl); | 950 | return do_flock(file, cmd, fl); |
951 | } | 951 | } |
952 | 952 | ||
953 | struct file_operations gfs2_file_fops = { | 953 | const struct file_operations gfs2_file_fops = { |
954 | .llseek = gfs2_llseek, | 954 | .llseek = gfs2_llseek, |
955 | .read = gfs2_read, | 955 | .read = gfs2_read, |
956 | .readv = gfs2_file_readv, | 956 | .readv = gfs2_file_readv, |
@@ -970,7 +970,7 @@ struct file_operations gfs2_file_fops = { | |||
970 | .splice_write = generic_file_splice_write, | 970 | .splice_write = generic_file_splice_write, |
971 | }; | 971 | }; |
972 | 972 | ||
973 | struct file_operations gfs2_dir_fops = { | 973 | const struct file_operations gfs2_dir_fops = { |
974 | .readdir = gfs2_readdir, | 974 | .readdir = gfs2_readdir, |
975 | .unlocked_ioctl = gfs2_ioctl, | 975 | .unlocked_ioctl = gfs2_ioctl, |
976 | .open = gfs2_open, | 976 | .open = gfs2_open, |
diff --git a/fs/gfs2/ops_file.h b/fs/gfs2/ops_file.h index a2edce38f5cb..46302b513937 100644 --- a/fs/gfs2/ops_file.h +++ b/fs/gfs2/ops_file.h | |||
@@ -14,7 +14,7 @@ extern int gfs2_internal_read(struct gfs2_inode *ip, | |||
14 | struct file_ra_state *ra_state, | 14 | struct file_ra_state *ra_state, |
15 | char *buf, loff_t *pos, unsigned size); | 15 | char *buf, loff_t *pos, unsigned size); |
16 | 16 | ||
17 | extern struct file_operations gfs2_file_fops; | 17 | extern const struct file_operations gfs2_file_fops; |
18 | extern struct file_operations gfs2_dir_fops; | 18 | extern const struct file_operations gfs2_dir_fops; |
19 | 19 | ||
20 | #endif /* __OPS_FILE_DOT_H__ */ | 20 | #endif /* __OPS_FILE_DOT_H__ */ |