diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-03-17 04:35:06 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-17 20:29:46 -0400 |
commit | 4bc8e9bcf50103216a7a316ab66b9bb8e81baa27 (patch) | |
tree | 5ad730ee7f19734aa11ae9a55ec025727115251e /fs/f2fs/node.h | |
parent | 90aa6dc9b9dd9b3ee832bb6e91e2d8ba8ebb93b6 (diff) |
f2fs: introduce f2fs_has_xattr_block for better readability
This patch introduces a help function f2fs_has_xattr_block for better
readability.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 4dea719766ef..ee6d28684ee8 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 | { | 242 | { |
243 | unsigned int ofs = ofs_of_node(node_page); | 243 | unsigned int ofs = ofs_of_node(node_page); |
244 | 244 | ||
245 | if (ofs == XATTR_NODE_OFFSET) | 245 | if (f2fs_has_xattr_block(ofs)) |
246 | return false; | 246 | return false; |
247 | 247 | ||
248 | if (ofs == 3 || ofs == 4 + NIDS_PER_BLOCK || | 248 | if (ofs == 3 || ofs == 4 + NIDS_PER_BLOCK || |