]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
f2fs: remove redundant lock_page calls
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Sun, 31 Mar 2013 03:47:20 +0000 (12:47 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 08:27:42 +0000 (17:27 +0900)
commit56ae674cc27230ea86ab25db7fcf1f32dfe17ec1
tree491d3032f5fde1dd5f47826f6491d909b673e470
parent53cf95222fad7a962cc03fb61a33e37bcf4f5c9d
f2fs: remove redundant lock_page calls

In get_node_page, we do not need to call lock_page all the time.

If the node page is cached as uptodate,

1. grab_cache_page locks the page,
2. read_node_page unlocks the page, and
3. lock_page is called for further process.

Let's avoid this.

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