summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/Kconfig
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2016-02-29 07:29:51 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2016-03-18 05:19:43 +0100
commit999270de31138f1ae41743a856911f8e5e114264 (patch)
treebdaf82728ffc7db19e00bffe41353f53388f4c30 /fs/f2fs/Kconfig
parentf2fs crypto: sync ext4_lookup and ext4_file_open (diff)
downloadlinux-999270de31138f1ae41743a856911f8e5e114264.tar.xz
linux-999270de31138f1ae41743a856911f8e5e114264.zip
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 'fs/f2fs/Kconfig')
0 files changed, 0 insertions, 0 deletions