[PATCH 7/7] f2fs: use missing the use of f2fs_kunmap_page

2014-12-14 Thread Jaegeuk Kim
This patch calls f2fs_kunmap_page which I missed before.

Signed-off-by: Jaegeuk Kim 
---
 fs/f2fs/dir.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index b1a7d57..b74097a 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -286,8 +286,7 @@ void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry 
*de,
f2fs_wait_on_page_writeback(page, type);
de->ino = cpu_to_le32(inode->i_ino);
set_de_type(de, inode);
-   if (!f2fs_has_inline_dentry(dir))
-   kunmap(page);
+   f2fs_dentry_kunmap(dir, page);
set_page_dirty(page);
dir->i_mtime = dir->i_ctime = CURRENT_TIME;
mark_inode_dirty(dir);
-- 
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 7/7] f2fs: use missing the use of f2fs_kunmap_page

2014-12-14 Thread Jaegeuk Kim
This patch calls f2fs_kunmap_page which I missed before.

Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
 fs/f2fs/dir.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index b1a7d57..b74097a 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -286,8 +286,7 @@ void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry 
*de,
f2fs_wait_on_page_writeback(page, type);
de-ino = cpu_to_le32(inode-i_ino);
set_de_type(de, inode);
-   if (!f2fs_has_inline_dentry(dir))
-   kunmap(page);
+   f2fs_dentry_kunmap(dir, page);
set_page_dirty(page);
dir-i_mtime = dir-i_ctime = CURRENT_TIME;
mark_inode_dirty(dir);
-- 
2.1.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/