Skip to content

Commit 5a3fd05

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/ecryptfs/dentry.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static void ecryptfs_d_release(struct dentry *dentry)
8989
return;
9090
}
9191

92-
struct dentry_operations ecryptfs_dops = {
92+
const struct dentry_operations ecryptfs_dops = {
9393
.d_revalidate = ecryptfs_d_revalidate,
9494
.d_release = ecryptfs_d_release,
9595
};

‎fs/ecryptfs/ecryptfs_kernel.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ extern const struct inode_operations ecryptfs_main_iops;
580580
extern const struct inode_operations ecryptfs_dir_iops;
581581
extern const struct inode_operations ecryptfs_symlink_iops;
582582
extern const struct super_operations ecryptfs_sops;
583-
extern struct dentry_operations ecryptfs_dops;
583+
extern const struct dentry_operations ecryptfs_dops;
584584
extern struct address_space_operations ecryptfs_aops;
585585
extern int ecryptfs_verbosity;
586586
extern unsigned int ecryptfs_message_buf_len;

0 commit comments

Comments
 (0)