]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fuse: writepages: update bdi writeout when deleting secondary request
authorMaxim Patlasov <MPatlasov@parallels.com>
Wed, 2 Oct 2013 17:38:43 +0000 (21:38 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 5 Nov 2013 09:11:28 +0000 (10:11 +0100)
commit41b6e41fc609753a9386d24295f7ed03b28c4601
tree923f7cdb4cc82f5506b2ebaf05c90013e35902d2
parent6eaf4782eb09e28dbd13d23b9ce0fb7646daf37e
fuse: writepages: update bdi writeout when deleting secondary request

BDI_WRITTEN counter is used to estimate bdi bandwidth.  It must be
incremented every time as bdi ends page writeback.  No matter whether it
was fulfilled by actual write or by discarding the request (e.g. due to
shrunk i_size).

Note that even before writepages patches, the case "Got truncated off
completely" was handled in fuse_send_writepage() by calling
fuse_writepage_finish() which updated BDI_WRITTEN unconditionally.

Signed-off-by: Maxim Patlasov <MPatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c