diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-11 21:18:36 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-21 12:21:01 -0400 |
commit | 5274651927a76c947469a589e3d2a9adbd075da6 (patch) | |
tree | 0958d7bb0e82c7d5bc2c10a6f1e15393640b117a /fs/f2fs/node.c | |
parent | 1e968fdfe69e4060f05fa04059ecad93a0284e32 (diff) |
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/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index c80e3d59314d..9f126f80813d 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -1129,8 +1129,11 @@ continue_unlock: | |||
1129 | set_fsync_mark(page, 0); | 1129 | set_fsync_mark(page, 0); |
1130 | set_dentry_mark(page, 0); | 1130 | set_dentry_mark(page, 0); |
1131 | } | 1131 | } |
1132 | NODE_MAPPING(sbi)->a_ops->writepage(page, wbc); | 1132 | |
1133 | wrote++; | 1133 | if (NODE_MAPPING(sbi)->a_ops->writepage(page, wbc)) |
1134 | unlock_page(page); | ||
1135 | else | ||
1136 | wrote++; | ||
1134 | 1137 | ||
1135 | if (--wbc->nr_to_write == 0) | 1138 | if (--wbc->nr_to_write == 0) |
1136 | break; | 1139 | break; |