diff options
-rw-r--r-- | fs/cifs/cifsfs.h | 4 | ||||
-rw-r--r-- | fs/cifs/dir.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 2b1d28a9ee28..77e190dc2883 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -78,8 +78,8 @@ extern int cifs_dir_open(struct inode *inode, struct file *file); | |||
78 | extern int cifs_readdir(struct file *file, void *direntry, filldir_t filldir); | 78 | extern int cifs_readdir(struct file *file, void *direntry, filldir_t filldir); |
79 | 79 | ||
80 | /* Functions related to dir entries */ | 80 | /* Functions related to dir entries */ |
81 | extern struct dentry_operations cifs_dentry_ops; | 81 | extern const struct dentry_operations cifs_dentry_ops; |
82 | extern struct dentry_operations cifs_ci_dentry_ops; | 82 | extern const struct dentry_operations cifs_ci_dentry_ops; |
83 | 83 | ||
84 | /* Functions related to symlinks */ | 84 | /* Functions related to symlinks */ |
85 | extern void *cifs_follow_link(struct dentry *direntry, struct nameidata *nd); | 85 | extern void *cifs_follow_link(struct dentry *direntry, struct nameidata *nd); |
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 89fb72832652..43cc0fd2f8a7 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -699,7 +699,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) | |||
699 | return rc; | 699 | return rc; |
700 | } */ | 700 | } */ |
701 | 701 | ||
702 | struct dentry_operations cifs_dentry_ops = { | 702 | const struct dentry_operations cifs_dentry_ops = { |
703 | .d_revalidate = cifs_d_revalidate, | 703 | .d_revalidate = cifs_d_revalidate, |
704 | /* d_delete: cifs_d_delete, */ /* not needed except for debugging */ | 704 | /* d_delete: cifs_d_delete, */ /* not needed except for debugging */ |
705 | }; | 705 | }; |
@@ -737,7 +737,7 @@ static int cifs_ci_compare(struct dentry *dentry, struct qstr *a, | |||
737 | return 1; | 737 | return 1; |
738 | } | 738 | } |
739 | 739 | ||
740 | struct dentry_operations cifs_ci_dentry_ops = { | 740 | const struct dentry_operations cifs_ci_dentry_ops = { |
741 | .d_revalidate = cifs_d_revalidate, | 741 | .d_revalidate = cifs_d_revalidate, |
742 | .d_hash = cifs_ci_hash, | 742 | .d_hash = cifs_ci_hash, |
743 | .d_compare = cifs_ci_compare, | 743 | .d_compare = cifs_ci_compare, |