Ensure we call unmap_mapping_range() and sync dirty pages to disk before doing an NFS direct write. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -291,6 +291,7 @@ static inline int nfs_verify_change_attribute(struct inode *inode, unsigned long · 290 unmodified lines | ||
| 291 | 291 | /* |
| 292 | 292 | * linux/fs/nfs/inode.c |
| 293 | 293 | */ |
| 294 | +extern int nfs_sync_mapping(struct address_space *mapping); | |
| 294 | 295 | extern void nfs_zap_caches(struct inode *); |
| 295 | 296 | extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *, |
| 296 | 297 | struct nfs_fattr *); |