Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4891547 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

fuse: fix missing unlock_page in fuse_writepage()



commit d5880c7a8620290a6c90ced7a0e8bd0ad9419601 upstream.

unlock_page() was missing in case of an already in-flight write against the
same page.

Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Fixes: ff17be08 ("fuse: writepage: skip already in flight")
Cc: <stable@vger.kernel.org> # v3.13
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c1f7ffbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1694,6 +1694,7 @@ static int fuse_writepage(struct page *page, struct writeback_control *wbc)
		WARN_ON(wbc->sync_mode == WB_SYNC_ALL);

		redirty_page_for_writepage(wbc, page);
		unlock_page(page);
		return 0;
	}