]> git.baikalelectronics.ru Git - kernel.git/commit
readahead: combine file_ra_state.prev_index/prev_offset into prev_pos
authorFengguang Wu <wfg@mail.ustc.edu.cn>
Tue, 16 Oct 2007 08:24:33 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:52 +0000 (09:42 -0700)
commite9ecbd396261a6b4d3a4b9d36684fa1c864b6274
tree74a573302b2ea086c0d21907175be604f110f5b1
parent1a2443f03f6ebc475b133883f0dd054682f2e6b7
readahead: combine file_ra_state.prev_index/prev_offset into prev_pos

Combine the file_ra_state members
unsigned long prev_index
unsigned int prev_offset
into
loff_t prev_pos

It is more consistent and better supports huge files.

Thanks to Peter for the nice proposal!

[akpm@linux-foundation.org: fix shift overflow]
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext3/dir.c
fs/ext4/dir.c
fs/splice.c
include/linux/fs.h
mm/filemap.c
mm/readahead.c