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,
.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,
struct file_ra_state *ra_state,
char *buf, loff_t *pos, unsigned size);
-extern struct file_operations gfs2_file_fops;
-extern struct file_operations gfs2_dir_fops;
+extern const struct file_operations gfs2_file_fops;
+extern const struct file_operations gfs2_dir_fops;
#endif /* __OPS_FILE_DOT_H__ */