diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-21 16:36:28 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-23 21:51:53 -0800 |
commit | 9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91 (patch) | |
tree | 0f308e43c33144b4535562897e9b370ce624d506 /fs/f2fs/f2fs.h | |
parent | c9ee00857c9630fba14ebe368d06dc3ac2489b84 (diff) | |
download | op-kernel-dev-9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91.zip op-kernel-dev-9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91.tar.gz |
f2fs: introduce f2fs_dentry_kunmap to clean up
This patch introduces f2fs_dentry_kunmap to clean up dirty codes.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 418c852..d042813 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1229,6 +1229,12 @@ static inline void *inline_dentry_addr(struct page *page) return (void *)&(ri->i_addr[1]); } +static inline void f2fs_dentry_kunmap(struct inode *dir, struct page *page) +{ + if (!f2fs_has_inline_dentry(dir)) + kunmap(page); +} + static inline int f2fs_readonly(struct super_block *sb) { return sb->s_flags & MS_RDONLY; |