History

NFS: Fix another O_DIRECT race

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>

Trond Myklebust committed 20 years ago

Commit 29884df1 parent b079fa74 files · +34 −42Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/nfs_fs.h+1−0
@@ -291,6 +291,7 @@ static inline int nfs_verify_change_attribute(struct inode *inode, unsigned long · 290 unmodified lines
291/*291/*
292 * linux/fs/nfs/inode.c292 * linux/fs/nfs/inode.c
293 */293 */
294extern int nfs_sync_mapping(struct address_space *mapping);
294extern void nfs_zap_caches(struct inode *);295extern void nfs_zap_caches(struct inode *);
295extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *,296extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *,
296 struct nfs_fattr *);297 struct nfs_fattr *);