Skip to content

Commit 4fd03e8

Browse files
author
Al Viro
committed
constify dentry_operations: CIFS
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 79be57c commit 4fd03e8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/cifs/cifsfs.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ extern int cifs_dir_open(struct inode *inode, struct file *file);
7878
extern int cifs_readdir(struct file *file, void *direntry, filldir_t filldir);
7979

8080
/* Functions related to dir entries */
81-
extern struct dentry_operations cifs_dentry_ops;
82-
extern struct dentry_operations cifs_ci_dentry_ops;
81+
extern const struct dentry_operations cifs_dentry_ops;
82+
extern const struct dentry_operations cifs_ci_dentry_ops;
8383

8484
/* Functions related to symlinks */
8585
extern void *cifs_follow_link(struct dentry *direntry, struct nameidata *nd);

‎fs/cifs/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
699699
return rc;
700700
} */
701701

702-
struct dentry_operations cifs_dentry_ops = {
702+
const struct dentry_operations cifs_dentry_ops = {
703703
.d_revalidate = cifs_d_revalidate,
704704
/* d_delete: cifs_d_delete, */ /* not needed except for debugging */
705705
};
@@ -737,7 +737,7 @@ static int cifs_ci_compare(struct dentry *dentry, struct qstr *a,
737737
return 1;
738738
}
739739

740-
struct dentry_operations cifs_ci_dentry_ops = {
740+
const struct dentry_operations cifs_ci_dentry_ops = {
741741
.d_revalidate = cifs_d_revalidate,
742742
.d_hash = cifs_ci_hash,
743743
.d_compare = cifs_ci_compare,

0 commit comments

Comments
 (0)