]> git.baikalelectronics.ru Git - kernel.git/commit
netfs: Keep track of the actual remote file size
authorDavid Howells <dhowells@redhat.com>
Fri, 5 Nov 2021 13:55:38 +0000 (13:55 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 18 Mar 2022 09:29:05 +0000 (09:29 +0000)
commit79f284413a9e7db6e31038e8502a6ebf41ce88a5
tree4c262eacb078d638640b91166e4b74d92797bdad
parentb9493ec25e0504d7a0d4ddcfd96379246a51106e
netfs: Keep track of the actual remote file size

Provide a place in which to keep track of the actual remote file size in
the netfs context.  This is needed because inode->i_size will be updated as
we buffer writes in the pagecache, but the server file size won't get
updated until we flush them back.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com

Link: https://lore.kernel.org/r/164623013727.3564931.17659955636985232717.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164678219305.1200972.6459431995188365134.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164692921865.2099075.5310757978508056134.stgit@warthog.procyon.org.uk/
include/linux/netfs.h