]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: optimize get node page readahead part
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 2 Feb 2013 14:51:51 +0000 (23:51 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 18 Mar 2013 12:00:34 +0000 (21:00 +0900)
commit4093469de30a00edaaa4d4fb6db047702f10f54d
tree857e17dd8c9f52c9e9b82502313049a4df84fa56
parente16b486762d43af1d4ef1cf3421c0395cb435ed6
f2fs: optimize get node page readahead part

We can remove the call to find_get_page to get a page from the cache
and check for up-to-date, instead we can make use of grab_cache_page
part itself to fetch the page from the cache.
So, removing the call and moving the PageUptodate at proper place, also
taken care of moving the lock_page condition in the page_hit part.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c