[PATCH] Make most file operations structs in fs/ const
authorArjan van de Ven <arjan@infradead.org>
Tue, 28 Mar 2006 09:56:42 +0000 (01:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:06 +0000 (09:16 -0800)
commit4b6f5d20b04dcbc3d888555522b90ba6d36c4106
tree420f271eaef7d3def7d4433b151c3cb6d7a54770
parent99ac48f54a91d02140c497edc31dc57d4bc5c85d
[PATCH] Make most file operations structs in fs/ const

This is a conversion to make the various file_operations structs in fs/
const.  Basically a regexp job, with a few manual fixups

The goal is both to increase correctness (harder to accidentally write to
shared datastructures) and reducing the false sharing of cachelines with
things that get dirty in .data (while .rodata is nicely read only and thus
cache clean)

Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
139 files changed:
drivers/misc/ibmasm/ibmasmfs.c
fs/9p/v9fs_vfs.h
fs/9p/vfs_dir.c
fs/9p/vfs_file.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/afs/dir.c
fs/afs/internal.h
fs/afs/mntpt.c
fs/afs/proc.c
fs/autofs/autofs_i.h
fs/autofs/root.c
fs/autofs4/autofs_i.h
fs/autofs4/root.c
fs/bad_inode.c
fs/befs/linuxvfs.c
fs/bfs/bfs.h
fs/bfs/dir.c
fs/bfs/file.c
fs/binfmt_misc.c
fs/block_dev.c
fs/char_dev.c
fs/cifs/cifsfs.c
fs/cifs/cifsfs.h
fs/coda/dir.c
fs/coda/file.c
fs/coda/pioctl.c
fs/coda/psdev.c
fs/configfs/configfs_internal.h
fs/configfs/dir.c
fs/configfs/file.c
fs/cramfs/inode.c
fs/debugfs/file.c
fs/devfs/base.c
fs/efs/dir.c
fs/eventpoll.c
fs/ext2/dir.c
fs/ext2/ext2.h
fs/ext2/file.c
fs/ext3/dir.c
fs/ext3/file.c
fs/fat/dir.c
fs/fat/file.c
fs/fifo.c
fs/freevxfs/vxfs_extern.h
fs/freevxfs/vxfs_lookup.c
fs/fuse/dev.c
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.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/dir.c
fs/hpfs/file.c
fs/hpfs/hpfs_fn.h
fs/hppfs/hppfs_kern.c
fs/hugetlbfs/inode.c
fs/inotify.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/jfs/file.c
fs/jfs/jfs_inode.h
fs/jfs/namei.c
fs/libfs.c
fs/minix/dir.c
fs/minix/file.c
fs/minix/minix.h
fs/ncpfs/dir.c
fs/ncpfs/file.c
fs/nfs/dir.c
fs/nfs/file.c
fs/nfsd/nfsctl.c
fs/nfsd/stats.c
fs/ntfs/dir.c
fs/ntfs/file.c
fs/ntfs/ntfs.h
fs/ocfs2/dlmglue.c
fs/ocfs2/file.c
fs/ocfs2/file.h
fs/openpromfs/inode.c
fs/pipe.c
fs/proc/kcore.c
fs/proc/kmsg.c
fs/proc/vmcore.c
fs/qnx4/dir.c
fs/qnx4/file.c
fs/ramfs/file-mmu.c
fs/ramfs/file-nommu.c
fs/ramfs/internal.h
fs/read_write.c
fs/reiserfs/dir.c
fs/reiserfs/file.c
fs/reiserfs/procfs.c
fs/romfs/inode.c
fs/smbfs/dir.c
fs/smbfs/file.c
fs/smbfs/proto.h
fs/sysfs/bin.c
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/sysfs.h
fs/sysv/dir.c
fs/sysv/file.c
fs/sysv/sysv.h
fs/udf/dir.c
fs/udf/file.c
fs/udf/udfdecl.h
fs/ufs/dir.c
fs/ufs/file.c
fs/xfs/linux-2.6/xfs_file.c
fs/xfs/linux-2.6/xfs_iops.h
include/linux/coda_linux.h
include/linux/crash_dump.h
include/linux/efs_fs.h
include/linux/ext3_fs.h
include/linux/fs.h
include/linux/hugetlb.h
include/linux/msdos_fs.h
include/linux/ncp_fs.h
include/linux/nfs_fs.h
include/linux/proc_fs.h
include/linux/qnx4_fs.h
include/linux/ramfs.h
include/linux/reiserfs_fs.h
include/linux/ufs_fs.h
net/nonet.c
net/socket.c