提交 b0dd9308 编写于 作者: S Steven Whitehouse
上级 66de045d
...@@ -950,7 +950,7 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) ...@@ -950,7 +950,7 @@ static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
return do_flock(file, cmd, fl); return do_flock(file, cmd, fl);
} }
struct file_operations gfs2_file_fops = { const struct file_operations gfs2_file_fops = {
.llseek = gfs2_llseek, .llseek = gfs2_llseek,
.read = gfs2_read, .read = gfs2_read,
.readv = gfs2_file_readv, .readv = gfs2_file_readv,
...@@ -970,7 +970,7 @@ struct file_operations gfs2_file_fops = { ...@@ -970,7 +970,7 @@ struct file_operations gfs2_file_fops = {
.splice_write = generic_file_splice_write, .splice_write = generic_file_splice_write,
}; };
struct file_operations gfs2_dir_fops = { const struct file_operations gfs2_dir_fops = {
.readdir = gfs2_readdir, .readdir = gfs2_readdir,
.unlocked_ioctl = gfs2_ioctl, .unlocked_ioctl = gfs2_ioctl,
.open = gfs2_open, .open = gfs2_open,
......
...@@ -14,7 +14,7 @@ extern int gfs2_internal_read(struct gfs2_inode *ip, ...@@ -14,7 +14,7 @@ extern int gfs2_internal_read(struct gfs2_inode *ip,
struct file_ra_state *ra_state, struct file_ra_state *ra_state,
char *buf, loff_t *pos, unsigned size); char *buf, loff_t *pos, unsigned size);
extern struct file_operations gfs2_file_fops; extern const struct file_operations gfs2_file_fops;
extern struct file_operations gfs2_dir_fops; extern const struct file_operations gfs2_dir_fops;
#endif /* __OPS_FILE_DOT_H__ */ #endif /* __OPS_FILE_DOT_H__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册