]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mark struct inode_operations const 3
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 Feb 2007 08:55:40 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:46 +0000 (09:48 -0800)
commit12bfb7568540a7f1821202e8f6fbcf59e3959740
treee1a9804a8af427f700aaba4b386cf8679b317e83
parent556c0b262126bb864126bd9373f463ccec2b4c51
[PATCH] mark struct inode_operations const 3

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>
48 files changed:
fs/proc/base.c
fs/proc/generic.c
fs/proc/root.c
fs/qnx4/dir.c
fs/qnx4/file.c
fs/ramfs/file-mmu.c
fs/ramfs/file-nommu.c
fs/ramfs/inode.c
fs/ramfs/internal.h
fs/reiserfs/file.c
fs/reiserfs/namei.c
fs/romfs/inode.c
fs/smbfs/dir.c
fs/smbfs/file.c
fs/smbfs/proto.h
fs/smbfs/symlink.c
fs/sysfs/dir.c
fs/sysfs/inode.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h
fs/sysv/file.c
fs/sysv/inode.c
fs/sysv/namei.c
fs/sysv/symlink.c
fs/sysv/sysv.h
fs/udf/file.c
fs/udf/namei.c
fs/udf/udfdecl.h
fs/ufs/namei.c
fs/ufs/symlink.c
fs/ufs/truncate.c
fs/vfat/namei.c
fs/xfs/linux-2.6/xfs_iops.c
fs/xfs/linux-2.6/xfs_iops.h
include/linux/coda_linux.h
include/linux/efs_fs.h
include/linux/ext3_fs.h
include/linux/ext4_fs.h
include/linux/fs.h
include/linux/msdos_fs.h
include/linux/ncp_fs.h
include/linux/nfs_fs.h
include/linux/nfs_xdr.h
include/linux/phonedev.h
include/linux/proc_fs.h
include/linux/qnx4_fs.h
include/linux/reiserfs_fs.h
include/linux/ufs_fs.h