Eric Dumazet
83b7b44e1c
[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>
2006-12-07 08:39:41 -08:00
..
2006-12-07 08:39:40 -08:00
2006-12-05 14:37:56 +00:00
2006-12-02 22:10:18 -08:00
2006-12-04 02:00:34 -05:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:36 -08:00
2006-12-04 02:00:22 -05:00
2006-12-07 08:39:37 -08:00
2006-12-07 08:39:20 -08:00
2006-12-07 08:39:30 -08:00
2006-12-07 08:39:32 -08:00
2006-12-07 08:39:39 -08:00
2006-12-07 08:39:20 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:22 -08:00
2006-12-07 08:39:38 -08:00
2006-12-07 08:39:35 -08:00
2006-12-07 08:39:35 -08:00
2006-12-07 08:39:23 -08:00
2006-12-07 08:39:28 -08:00
2006-12-07 08:39:23 -08:00
2006-12-07 08:39:41 -08:00
2006-12-07 08:39:32 -08:00
2006-12-07 08:39:21 -08:00
2006-12-07 08:39:21 -08:00
2006-12-07 08:39:21 -08:00
2006-12-07 08:39:40 -08:00
2006-12-04 02:00:34 -05:00
2006-12-02 22:04:04 -08:00
2006-12-07 08:39:36 -08:00
2006-12-07 08:39:20 -08:00
2006-12-07 08:39:40 -08:00
2006-12-07 08:39:40 -08:00
2006-12-03 22:22:41 -05:00
2006-12-04 12:45:29 -08:00
2006-12-07 08:39:38 -08:00
2006-12-07 08:39:37 -08:00
2006-12-05 17:01:28 +00:00
2006-12-07 08:39:39 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:20 -08:00
2006-12-04 02:00:22 -05:00
2006-12-07 08:39:34 -08:00
2006-12-07 08:39:38 -08:00
2006-12-07 08:39:36 -08:00
2006-12-04 02:00:34 -05:00
2006-12-04 12:45:29 -08:00
2006-12-05 19:36:26 +00:00
2006-12-07 08:39:34 -08:00
2006-12-04 02:00:36 -05:00
2006-12-07 08:39:36 -08:00
2006-12-07 08:39:25 -08:00
2006-12-05 14:37:56 +00:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:36 -08:00
2006-12-07 08:39:36 -08:00
2006-12-07 08:39:39 -08:00
2006-12-07 08:39:35 -08:00
2006-12-07 08:39:30 -08:00
2006-12-07 08:39:22 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:38 -08:00
2006-12-07 08:39:20 -08:00
2006-12-07 08:39:27 -08:00
2006-12-07 08:39:27 -08:00
2006-12-07 08:39:34 -08:00
2006-12-05 14:37:56 +00:00
2006-12-04 19:41:15 -08:00
2006-12-07 08:39:34 -08:00
2006-12-05 14:37:56 +00:00
2006-12-07 08:39:29 -08:00
2006-12-02 22:22:25 -08:00