]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
afs: Skip truncation on the server of data we haven't written yet
authorDavid Howells <dhowells@redhat.com>
Wed, 22 Jul 2020 09:44:34 +0000 (10:44 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 21:23:49 +0000 (21:23 +0000)
commitc92a3502f0baf061b88c2d30c99006b6c6aa4531
tree3d28e90d3beb701811f4733f29052bfd441e5eca
parent2ec3854deecec405aed424d32999b40be7e8b69e
afs: Skip truncation on the server of data we haven't written yet

Don't send a truncation RPC to the server if we're only shortening data
that's in the pagecache and is beyond the server's EOF.

Also don't automatically force writeback on setattr, but do wait to store
RPCs that are in the region to be removed on a shortening truncation.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
fs/afs/inode.c