aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/node.h2
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)
242 return false; 242 return false;
243 if (ofs >= 6 + 2 * NIDS_PER_BLOCK) { 243 if (ofs >= 6 + 2 * NIDS_PER_BLOCK) {
244 ofs -= 6 + 2 * NIDS_PER_BLOCK; 244 ofs -= 6 + 2 * NIDS_PER_BLOCK;
245 if ((long int)ofs % (NIDS_PER_BLOCK + 1)) 245 if (!((long int)ofs % (NIDS_PER_BLOCK + 1)))
246 return false; 246 return false;
247 } 247 }
248 return true; 248 return true;