aboutsummaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2016-02-29 14:29:51 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:12 +0200
commit10dd31650429afc3a773395eace5ce8a50996fce (patch)
treee095490a90ade0806eca9606a1d78dd73cc11354 /include/linux/platform_data
parent1cc29dbd803898cec3bd2011aa1db4ddb2cf8932 (diff)
f2fs: modify the readahead method in ra_node_page()
ra_node_page() is used to read ahead one node page. Comparing to regular read, it's faster because it doesn't wait for IO completion. But if it is called twice for reading the same block, and the IO request from the first call hasn't been completed before the second call, the second call will have to wait until the read is over. Here use the code in __do_page_cache_readahead() to solve this problem. It does nothing when someone else already puts the page in mapping. The status of page should be assured by whoever puts it there. This implement also prevents alteration of page reference count. Signed-off-by: Fan li <fanofcode.li@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions