summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu2013-11-16 07:15:59 +0100
committerJaegeuk Kim2013-12-23 02:18:00 +0100
commit75c3c8bc88d573d6823fcf2576f5c47e4fc41710 (patch)
tree7558da19acf08b24f5a38edba0bf1dd26824a771 /fs/f2fs
parentf2fs: add a tracepoint for f2fs_issue_discard (diff)
downloadkernel-qcow2-linux-75c3c8bc88d573d6823fcf2576f5c47e4fc41710.tar.gz
kernel-qcow2-linux-75c3c8bc88d573d6823fcf2576f5c47e4fc41710.tar.xz
kernel-qcow2-linux-75c3c8bc88d573d6823fcf2576f5c47e4fc41710.zip
f2fs: use f2fs_put_page to release page for uniform style
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index aa3438c571fa..076a60cb8dbb 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -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;
}