git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
console/vgacon.c: mark file-local symbol static
[sfrench/cifs-2.6.git]
/
mm
/
readahead.c
diff --git
a/mm/readahead.c
b/mm/readahead.c
index 033bc135a41f3885cae863ca0c9f5185d6c5d665..337b20e946f6891ed9ae322d22c8e24a1b27f40e 100644
(file)
--- a/
mm/readahead.c
+++ b/
mm/readahead.c
@@
-501,6
+501,12
@@
void page_cache_sync_readahead(struct address_space *mapping,
if (!ra->ra_pages)
return;
+ /* be dumb */
+ if (filp->f_mode & FMODE_RANDOM) {
+ force_page_cache_readahead(mapping, filp, offset, req_size);
+ return;
+ }
+
/* do read-ahead */
ondemand_readahead(mapping, ra, filp, false, offset, req_size);
}