diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-22 01:36:28 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-24 06:51:53 +0100 |
commit | 9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91 (patch) | |
tree | 0f308e43c33144b4535562897e9b370ce624d506 /fs/f2fs/dir.c | |
parent | f2fs: fix wrong data structure when create slab (diff) | |
download | linux-9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91.tar.xz linux-9486ba442b00a6b227bfe0d66b0f4dbcd1a2ee91.zip |
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/dir.c')
-rw-r--r-- | fs/f2fs/dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 5a49995a666e..b1a7d5737cd0 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -271,8 +271,7 @@ ino_t f2fs_inode_by_name(struct inode *dir, struct qstr *qstr) de = f2fs_find_entry(dir, qstr, &page); if (de) { res = le32_to_cpu(de->ino); - if (!f2fs_has_inline_dentry(dir)) - kunmap(page); + f2fs_dentry_kunmap(dir, page); f2fs_put_page(page, 0); } |