diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 17:27:45 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-16 17:27:45 +0100 |
commit | 58fed94dfb17e89556b5705f20f90e5b2971b6a1 (patch) | |
tree | 00d5b982c1811083138f3ee7a614834bad87c32e /fs/afs/internal.h | |
parent | afs: Handle a short write to an AFS page (diff) | |
download | linux-58fed94dfb17e89556b5705f20f90e5b2971b6a1.tar.xz linux-58fed94dfb17e89556b5705f20f90e5b2971b6a1.zip |
afs: Flush outstanding writes when an fd is closed
Flush outstanding writes in afs when an fd is closed. This is what NFS and
CIFS do.
Reported-by: Marc Dionne <marc.c.dionne@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index dc2cb486e127..af1d91ec7f2c 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -720,6 +720,7 @@ extern int afs_writepages(struct address_space *, struct writeback_control *); extern void afs_pages_written_back(struct afs_vnode *, struct afs_call *); extern ssize_t afs_file_write(struct kiocb *, struct iov_iter *); extern int afs_writeback_all(struct afs_vnode *); +extern int afs_flush(struct file *, fl_owner_t); extern int afs_fsync(struct file *, loff_t, loff_t, int); |