aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-12-21 18:02:14 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 10:26:03 +0900
commit4f4124d0b99682efa7307191a28ec050872d2079 (patch)
treeaf2ba4a8c2dba592834e7aea6dede7f680453bdd /fs/f2fs/node.h
parentf2fs: remove the rw_flag domain from f2fs_io_info (diff)
downloadlinux-dev-4f4124d0b99682efa7307191a28ec050872d2079.tar.xz
linux-dev-4f4124d0b99682efa7307191a28ec050872d2079.zip
f2fs: update several comments
Update several comments: 1. use f2fs_{un}lock_op install of mutex_{un}lock_op. 2. update comment of get_data_block(). 3. update description of node offset. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r--fs/f2fs/node.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 3496bb3e15dc..c4c79885c993 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -224,7 +224,13 @@ static inline block_t next_blkaddr_of_node(struct page *node_page)
* | `- direct node (5 + N => 5 + 2N - 1)
* `- double indirect node (5 + 2N)
* `- indirect node (6 + 2N)
- * `- direct node (x(N + 1))
+ * `- direct node
+ * ......
+ * `- indirect node ((6 + 2N) + x(N + 1))
+ * `- direct node
+ * ......
+ * `- indirect node ((6 + 2N) + (N - 1)(N + 1))
+ * `- direct node
*/
static inline bool IS_DNODE(struct page *node_page)
{