|
@@ -623,6 +623,9 @@ static int nfs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
|
|
|
/* make sure the cache has finished storing the page */
|
|
|
nfs_fscache_wait_on_page_write(NFS_I(inode), page);
|
|
|
|
|
|
+ wait_on_bit_action(&NFS_I(inode)->flags, NFS_INO_INVALIDATING,
|
|
|
+ nfs_wait_bit_killable, TASK_KILLABLE);
|
|
|
+
|
|
|
lock_page(page);
|
|
|
mapping = page_file_mapping(page);
|
|
|
if (mapping != inode->i_mapping)
|