diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2019-09-13 18:17:11 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-24 16:28:01 +0300 |
commit | d5880c7a8620290a6c90ced7a0e8bd0ad9419601 (patch) | |
tree | ef54c33b7fe8f1e76d81fc32a32f659ce50f16f9 /fs | |
parent | 501ae8ecae2ba5122774dee4445003505a7fd01b (diff) | |
download | linux-d5880c7a8620290a6c90ced7a0e8bd0ad9419601.tar.xz |
fuse: fix missing unlock_page in fuse_writepage()
unlock_page() was missing in case of an already in-flight write against the
same page.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Fixes: ff17be086477 ("fuse: writepage: skip already in flight")
Cc: <stable@vger.kernel.org> # v3.13
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index a2ea347c4d2c..8c7578b95d2c 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1861,6 +1861,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; } |