diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-31 05:47:20 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-03 10:27:42 +0200 |
commit | 56ae674cc27230ea86ab25db7fcf1f32dfe17ec1 (patch) | |
tree | 491d3032f5fde1dd5f47826f6491d909b673e470 /fs/f2fs/node.h | |
parent | f2fs: introduce TOTAL_SECS macro (diff) | |
download | linux-56ae674cc27230ea86ab25db7fcf1f32dfe17ec1.tar.xz linux-56ae674cc27230ea86ab25db7fcf1f32dfe17ec1.zip |
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>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r-- | fs/f2fs/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index d009cdfd2679..271a61c25601 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -29,6 +29,9 @@ /* vector size for gang look-up from nat cache that consists of radix tree */ #define NATVEC_SIZE 64 +/* return value for read_node_page */ +#define LOCKED_PAGE 1 + /* * For node information */ |