aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-06-29 06:14:10 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2015-08-04 17:09:52 -0400
commit5ac9f36fcacd532b218db1e0fd0f9e8a18321f22 (patch)
tree0d84fa658868273755594ed8b84a81ead9cae776 /fs/f2fs/checkpoint.c
parent92859a5efdfa71f712ec1d213f43061965d3e9b4 (diff)
f2fs: fix to record dirty page count for symlink
Dirty page can be exist in mapping of newly created symlink, but previously we did not maintain the counting of dirty page for symlink like we maintained for regular/directory, so the counting we lookuped should be wrong. This patch adds missed dirty page counting for symlink to fix this issue. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index b70bbe1a6a8c..de7a0d6a371a 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -704,7 +704,8 @@ void update_dirty_page(struct inode *inode, struct page *page)
704 struct inode_entry *new; 704 struct inode_entry *new;
705 int ret = 0; 705 int ret = 0;
706 706
707 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode)) 707 if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode) &&
708 !S_ISLNK(inode->i_mode))
708 return; 709 return;
709 710
710 if (!S_ISDIR(inode->i_mode)) { 711 if (!S_ISDIR(inode->i_mode)) {