]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 4 Oct 2013 08:50:13 +0000 (10:50 +0200)
commit10f0374aeddf9851ac19d4328d7a3dcff5b3ae8f
treee83ca9add1c5a62200d4e15737413bc8335ad3a7
parent4cf7c02ed86bb850c5c1f30f42d52449c5c726bc
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