]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/fuse/file.c
fuse: decrement NR_WRITEBACK_TEMP on the right page
[mirror_ubuntu-bionic-kernel.git] / fs / fuse / file.c
index cfcc313c28e30f63e2d04c3aed6605751b665d38..b81d565f6279b6973cc2b209ffe218c9b76bd7db 100644 (file)
@@ -1776,7 +1776,7 @@ static bool fuse_writepage_in_flight(struct fuse_req *new_req,
                spin_unlock(&fc->lock);
 
                dec_wb_stat(&bdi->wb, WB_WRITEBACK);
-               dec_node_page_state(page, NR_WRITEBACK_TEMP);
+               dec_node_page_state(new_req->pages[0], NR_WRITEBACK_TEMP);
                wb_writeout_inc(&bdi->wb);
                fuse_writepage_free(fc, new_req);
                fuse_request_free(new_req);