diff options
author | Zhihui Zhang <zzhsuny@gmail.com> | 2013-04-07 18:57:04 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-09 11:21:24 +0200 |
commit | 3315101f7070013d01bb5396c6bde07b3a8bcbd8 (patch) | |
tree | df475787e48de605f4e9811ea0d16a66868a1a57 /fs/f2fs/node.h | |
parent | f2fs: introduce a new global lock scheme (diff) | |
download | linux-3315101f7070013d01bb5396c6bde07b3a8bcbd8.tar.xz linux-3315101f7070013d01bb5396c6bde07b3a8bcbd8.zip |
f2fs: fix the logic of IS_DNODE()
If (ofs % (NIDS_PER_BLOCK + 1) == 0), the node is an indirect node block.
Signed-off-by: Zhihui Zhang <zzhsuny@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r-- | fs/f2fs/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 271a61c25601..0a2d72f0024d 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -242,7 +242,7 @@ static inline bool IS_DNODE(struct page *node_page) return false; if (ofs >= 6 + 2 * NIDS_PER_BLOCK) { ofs -= 6 + 2 * NIDS_PER_BLOCK; - if ((long int)ofs % (NIDS_PER_BLOCK + 1)) + if (!((long int)ofs % (NIDS_PER_BLOCK + 1))) return false; } return true; |