Skip to content

Commit

Permalink
[GFS2] Mark file_operations const
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Whitehouse committed Jul 3, 2006
1 parent 66de045 commit b0dd930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/gfs2/ops_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions fs/gfs2/ops_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extern int gfs2_internal_read(struct gfs2_inode *ip,
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__ */

0 comments on commit b0dd930

Please sign in to comment.