Skip to content

Commit ad28b4e

Browse files
author
Al Viro
committed
constify dentry_operations: JFS
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d8fba0f commit ad28b4e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/jfs/jfs_inode.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ extern const struct file_operations jfs_dir_operations;
4747
extern const struct inode_operations jfs_file_inode_operations;
4848
extern const struct file_operations jfs_file_operations;
4949
extern const struct inode_operations jfs_symlink_inode_operations;
50-
extern struct dentry_operations jfs_ci_dentry_operations;
50+
extern const struct dentry_operations jfs_ci_dentry_operations;
5151
#endif /* _H_JFS_INODE */

‎fs/jfs/namei.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/*
3636
* forward references
3737
*/
38-
struct dentry_operations jfs_ci_dentry_operations;
38+
const struct dentry_operations jfs_ci_dentry_operations;
3939

4040
static s64 commitZeroLink(tid_t, struct inode *);
4141

@@ -1595,7 +1595,7 @@ static int jfs_ci_compare(struct dentry *dir, struct qstr *a, struct qstr *b)
15951595
return result;
15961596
}
15971597

1598-
struct dentry_operations jfs_ci_dentry_operations =
1598+
const struct dentry_operations jfs_ci_dentry_operations =
15991599
{
16001600
.d_hash = jfs_ci_hash,
16011601
.d_compare = jfs_ci_compare,

0 commit comments

Comments
 (0)