]> www.infradead.org Git - users/hch/configfs.git/commit
netfs: Update i_blocks when write committed to pagecache
authorDavid Howells <dhowells@redhat.com>
Fri, 23 Feb 2024 08:04:33 +0000 (08:04 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 29 Apr 2024 14:01:42 +0000 (15:01 +0100)
commit5f24162f873f08681804059e6de70d77c3e4cea2
treedfec3afaa1c7f65815dc458700d1fdd7efdd70e2
parente67572cd2204894179d89bd7b984072f19313b03
netfs: Update i_blocks when write committed to pagecache

Update i_blocks when i_size is updated when we finish making a write to the
pagecache to reflect the amount of space we think will be consumed.

This maintains cifs commit dbfdff402d89854126658376cbcb08363194d3cd ("smb3:
update allocation size more accurately on write completion") which would
otherwise be removed by the cifs part of the netfs writeback rewrite.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/netfs/buffered_write.c