diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-03-17 16:35:06 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-18 09:29:46 +0900 |
commit | 4bc8e9bcf50103216a7a316ab66b9bb8e81baa27 (patch) | |
tree | 5ad730ee7f19734aa11ae9a55ec025727115251e /fs/f2fs/f2fs.h | |
parent | 90aa6dc9b9dd9b3ee832bb6e91e2d8ba8ebb93b6 (diff) | |
download | blackbird-op-linux-4bc8e9bcf50103216a7a316ab66b9bb8e81baa27.tar.gz blackbird-op-linux-4bc8e9bcf50103216a7a316ab66b9bb8e81baa27.zip |
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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 1f87a04f1441..292cc3c25b28 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -637,6 +637,11 @@ static inline int F2FS_HAS_BLOCKS(struct inode *inode) return inode->i_blocks > F2FS_DEFAULT_ALLOCATED_BLOCKS; } +static inline bool f2fs_has_xattr_block(unsigned int ofs) +{ + return ofs == XATTR_NODE_OFFSET; +} + static inline bool inc_valid_block_count(struct f2fs_sb_info *sbi, struct inode *inode, blkcnt_t count) { |