mm/shmem.c: constify anon_ops

Every other dentry_operations instance is const, and this one might as
well be.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Rasmus Villemoes 2016-10-07 17:01:01 -07:00 • committed by Linus Torvalds
commit 19938e350a

View file

@ -4078,7 +4078,7 @@ EXPORT_SYMBOL_GPL(shmem_truncate_range);
/* common code */
static struct dentry_operations anon_ops = {
static const struct dentry_operations anon_ops = {
.d_dname = simple_dname
};