Prev: [PATCH 6/6] xen/hybrid: Enable grant table and xenbus
Next: mips: use generic ptrace_resume code
From: Rik van Riel on 25 Feb 2010 17:50 On 02/23/2010 10:10 PM, Wu Fengguang wrote: > Some applications (eg. blkid, id3tool etc.) seek around the file > to get information. For example, blkid does > seek to 0 > read 1024 > seek to 1536 > read 16384 > > The start-of-file readahead heuristic is wrong for them, whose > access pattern can be identified by lseek() calls. > > So test-and-set a READAHEAD_LSEEK flag on lseek() and don't > do start-of-file readahead on seeing it. Proposed by Linus. > > Acked-by: Linus Torvalds<torvalds(a)linux-foundation.org> > Signed-off-by: Wu Fengguang<fengguang.wu(a)intel.com> Acked-by: Rik van Riel <riel(a)redhat.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
First
|
Prev
|
Pages: 1 2 Prev: [PATCH 6/6] xen/hybrid: Enable grant table and xenbus Next: mips: use generic ptrace_resume code |