projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3993683
)
f2fs: fix the logic of IS_DNODE()
author
Zhihui Zhang
<zzhsuny@gmail.com>
Sun, 7 Apr 2013 16:57:04 +0000
(12:57 -0400)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Tue, 9 Apr 2013 09:21:24 +0000
(18:21 +0900)
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>
fs/f2fs/node.h
patch
|
blob
|
history
diff --git
a/fs/f2fs/node.h
b/fs/f2fs/node.h
index 271a61c2560128c601867eb703b0214a36dd7eb0..0a2d72f0024ddf88c4df50c46d0eda59a00bbb62 100644
(file)
--- 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;