summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-11 18:18:36 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-21 09:21:01 -0700
commit5274651927a76c947469a589e3d2a9adbd075da6 (patch)
tree0958d7bb0e82c7d5bc2c10a6f1e15393640b117a /fs
parent1e968fdfe69e4060f05fa04059ecad93a0284e32 (diff)
downloadop-kernel-dev-5274651927a76c947469a589e3d2a9adbd075da6.zip
op-kernel-dev-5274651927a76c947469a589e3d2a9adbd075da6.tar.gz
f2fs: unlock_page when node page is redirtied out
This patch fixes missing unlock_page when a node page is redirtied out. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/node.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index c80e3d5..9f126f8 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1129,8 +1129,11 @@ continue_unlock:
set_fsync_mark(page, 0);
set_dentry_mark(page, 0);
}
- NODE_MAPPING(sbi)->a_ops->writepage(page, wbc);
- wrote++;
+
+ if (NODE_MAPPING(sbi)->a_ops->writepage(page, wbc))
+ unlock_page(page);
+ else
+ wrote++;
if (--wbc->nr_to_write == 0)
break;
OpenPOWER on IntegriCloud