From: Jaegeuk Kim Date: Tue, 12 Aug 2014 01:18:36 +0000 (-0700) Subject: f2fs: unlock_page when node page is redirtied out X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5274651927a76c947469a589e3d2a9adbd075da6;p=linux-beck.git 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 --- 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: 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;