f2fs: use f2fs_put_page to release page for uniform style
authorChao Yu <chao2.yu@samsung.com>
Sat, 16 Nov 2013 06:15:59 +0000 (14:15 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:00 +0000 (10:18 +0900)
We should use f2fs_put_page to release page for uniform style of f2fs code.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c

index aa3438c571fa9a2dfaf3e1ab61bd4328f580b0d6..076a60cb8dbbab7e3dcf5fbb8cc0e2ec61a5b0cc 100644 (file)
@@ -714,8 +714,7 @@ static int f2fs_write_end(struct file *file,
                update_inode_page(inode);
        }
 
-       unlock_page(page);
-       page_cache_release(page);
+       f2fs_put_page(page, 1);
        return copied;
 }