[PATCH] mark struct inode_operations const 2
commit92e1d5be91a0e3ffa5c4697eeb09b2aa22792122
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:39 +0000 (12 00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:46 +0000 (12 09:48 -0800)
tree4eb22a9f6c38e9f4cc2a5100cd6659b0af08b7ae
parent754661f143e70d66eae6c48532ca245aa05dec0e
[PATCH] mark struct inode_operations const 2

Many struct inode_operations in the kernel can be "const".  Marking them const
moves these to the .rodata section, which avoids false sharing with potential
dirty data.  In addition it'll catch accidental writes at compile time to
these shared resources.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
54 files changed:
fs/gfs2/ops_inode.c
fs/gfs2/ops_inode.h
fs/hfs/dir.c
fs/hfs/hfs_fs.h
fs/hfs/inode.c
fs/hfsplus/dir.c
fs/hfsplus/inode.c
fs/hostfs/hostfs_kern.c
fs/hpfs/file.c
fs/hpfs/hpfs_fn.h
fs/hpfs/namei.c
fs/hppfs/hppfs_kern.c
fs/hugetlbfs/inode.c
fs/isofs/dir.c
fs/isofs/isofs.h
fs/jffs/inode-v23.c
fs/jffs2/dir.c
fs/jffs2/file.c
fs/jffs2/os-linux.h
fs/jffs2/symlink.c
fs/jfs/file.c
fs/jfs/jfs_inode.h
fs/jfs/namei.c
fs/jfs/symlink.c
fs/libfs.c
fs/minix/file.c
fs/minix/inode.c
fs/minix/minix.h
fs/minix/namei.c
fs/msdos/namei.c
fs/namei.c
fs/ncpfs/dir.c
fs/ncpfs/file.c
fs/ncpfs/inode.c
fs/nfs/dir.c
fs/nfs/file.c
fs/nfs/namespace.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/symlink.c
fs/ntfs/file.c
fs/ntfs/namei.c
fs/ntfs/ntfs.h
fs/ocfs2/dlm/dlmfs.c
fs/ocfs2/file.c
fs/ocfs2/file.h
fs/ocfs2/namei.c
fs/ocfs2/namei.h
fs/ocfs2/symlink.c
fs/ocfs2/symlink.h
fs/openpromfs/inode.c
ipc/mqueue.c
kernel/cpuset.c
mm/shmem.c