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

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>
57 files changed:
arch/powerpc/platforms/cell/spufs/inode.c
fs/9p/vfs_inode.c
fs/adfs/adfs.h
fs/adfs/dir.c
fs/adfs/file.c
fs/affs/affs.h
fs/affs/dir.c
fs/affs/file.c
fs/affs/inode.c
fs/affs/symlink.c
fs/afs/dir.c
fs/afs/file.c
fs/afs/internal.h
fs/afs/mntpt.c
fs/autofs/autofs_i.h
fs/autofs/root.c
fs/autofs/symlink.c
fs/autofs4/autofs_i.h
fs/autofs4/root.c
fs/autofs4/symlink.c
fs/bad_inode.c
fs/befs/linuxvfs.c
fs/bfs/bfs.h
fs/bfs/dir.c
fs/bfs/file.c
fs/cifs/cifsfs.c
fs/cifs/cifsfs.h
fs/coda/cnode.c
fs/coda/dir.c
fs/coda/inode.c
fs/coda/pioctl.c
fs/configfs/configfs_internal.h
fs/configfs/dir.c
fs/configfs/inode.c
fs/configfs/symlink.c
fs/cramfs/inode.c
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/inode.c
fs/efs/dir.c
fs/ext2/ext2.h
fs/ext2/file.c
fs/ext2/namei.c
fs/ext2/symlink.c
fs/ext3/file.c
fs/ext3/namei.c
fs/ext3/symlink.c
fs/ext4/file.c
fs/ext4/namei.c
fs/ext4/symlink.c
fs/fat/file.c
fs/fat/inode.c
fs/freevxfs/vxfs_extern.h
fs/freevxfs/vxfs_immed.c
fs/freevxfs/vxfs_inode.c
fs/freevxfs/vxfs_lookup.c
fs/fuse/control.c
fs/fuse/dir.c