summaryrefslogtreecommitdiffstats
path: root/fs/romfs
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2006-03-28 01:56:42 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-28 09:16:06 -0800
commit4b6f5d20b04dcbc3d888555522b90ba6d36c4106 (patch)
tree420f271eaef7d3def7d4433b151c3cb6d7a54770 /fs/romfs
parent99ac48f54a91d02140c497edc31dc57d4bc5c85d (diff)
[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>
Diffstat (limited to 'fs/romfs')
-rw-r--r--fs/romfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c
index c2fc424d7d5c..9b9eda7b335c 100644
--- a/fs/romfs/inode.c
+++ b/fs/romfs/inode.c
@@ -463,7 +463,7 @@ static struct address_space_operations romfs_aops = {
.readpage = romfs_readpage
};
-static struct file_operations romfs_dir_operations = {
+static const struct file_operations romfs_dir_operations = {
.read = generic_read_dir,
.readdir = romfs_readdir,
};
n>/+0 * | [PATCH] ppc32: fix last_jiffy time comparisonPaul Mackerras2006-08-301-4/+0 * | Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/...Linus Torvalds2006-08-303-11/+21 |\ \ | * | [IA64] remove redundant local_irq_save() calls from sn_sal.hRuss Anderson2006-08-291-6/+0 | * | [IA64-SGI] Silent data corruption caused by XPC V2.Dean Nelson2006-08-082-5/+21 * | | [PATCH] x86_64: Save original IST values for checking stack addressesKeith Owens2006-08-301-0/+6 * | | [PATCH] i386: Remove __KERNEL__ ifdef around _syscall*()Andi Kleen2006-08-301-2/+2 * | | [PATCH] x86_64: Remove __KERNEL__ ifdef around _syscall*()Andi Kleen2006-08-301-5/+6 * | | [PATCH] i386: Remove alternative_smpAndi Kleen2006-08-303-41/+10 * | | [PATCH] x86_64: Remove alternative_smpAndi Kleen2006-08-302-27/+4 * | | [PATCH] x86: Make backtracer fallback logic more bullet-proofJan Beulich2006-08-302-0/+2 * | | [PATCH] x86: fix x86 cpuid keys used in alternative_smp()Jan Beulich2006-08-302-2/+3 * | | Merge master.kernel.org:/home/rmk/linux-2.6-serialLinus Torvalds2006-08-281-0/+3 |\ \ \ | * | | [SERIAL] Support for Intashield 2 port PCI serial cardPeter Horton2006-08-271-0/+3 * | | | Merge master.kernel.org:/home/rmk/linux-2.6-armLinus Torvalds2006-08-283-4/+11 |\ \ \ \ | * | | | [ARM] Move prototype for register_isa_ports to asm/io.hRussell King2006-08-281-0/+7 | * | | | [ARM] 3760/1: This patch adds timeouts while working with SSP registers. Such...Paul Sokolovsky2006-08-272-4/+4 | |/ / / * | | | [PATCH] Fix tty layer DoS and comment relevant codeAlan Cox2006-08-271-0/+1 * | | | [PATCH] lockdep: annotate reiserfsIngo Molnar2006-08-271-1/+2 * | | | [PATCH] CONFIG_ACPI_SRAT NUMA build fixKAMEZAWA Hiroyuki2006-08-271-1/+1 * | | | [PATCH] register_one_node() compile fixKAMEZAWA Hiroyuki2006-08-271-1/+9 * | | | [PATCH] Manage jbd allocations from its own slabsBadari Pulavarty2006-08-271-0/+3 * | | | [PATCH] vcsa attribute bits -> ioctl(VT_GETHIFONTMASK)Samuel Thibault2006-08-272-0/+2 * | | | [PATCH] drivers/rtc: fix rtc-s3c.cBen Dooks2006-08-271-1/+1 |/ / / * | | [BRIDGE] netfilter: memory corruption fixStephen Hemminger2006-08-261-2/+12 * | | Merge gregkh@master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6Greg Kroah-Hartman2006-08-262-5/+18 |\ \ \ | * | | Merge ../linux-2.6James Bottomley2006-08-0654-96/+286 | |\| | | * | | [SCSI] iscsi bugfixes: reduce memory allocationsMike Christie2006-07-28