summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/53c700.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2006-12-06 20:38:53 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 08:39:41 -0800
commit83b7b44e1c1e9e493ccd4146558481ab5af0116a (patch)
tree8da0b4d9601d27073b14964fd43f64bb73540e22 /drivers/scsi/53c700.c
parentea82c74093f48b28e632d03eeff22faf99727a8c (diff)
downloadop-kernel-dev-83b7b44e1c1e9e493ccd4146558481ab5af0116a.zip
op-kernel-dev-83b7b44e1c1e9e493ccd4146558481ab5af0116a.tar.gz
[PATCH] fs: reorder some 'struct inode' fields to speedup i_size manipulations
On 32bits SMP platforms, 64bits i_size is protected by a seqcount (i_size_seqcount). When i_size is read or written, i_size_seqcount is read/written as well, so it make sense to group these two fields together in the same cache line. This patch moves i_size_seqcount next to i_size, and also moves i_version to let offsetof(struct inode, i_size) being 0x40 instead of 0x3c (for 32bits platforms). For 64 bits platforms, i_size_seqcount doesnt exist, and the move of a 'long i_version' should not introduce a new hole because of padding. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/53c700.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud