]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 8 Mar 2013 12:03:22 +0000 (21:03 +0900)
commita9f53dc670182eb908439de3b9b5184573a8a854
treebaca976e2cf3dd0dbc8c906c9ec023756e5f83bd
parentf1277facbe76d3e79fb809f5a33ab4da23d1240c
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