]> Pileus Git - ~andy/linux/blobdiff - fs/nfs/file.c
Merge tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm...
[~andy/linux] / fs / nfs / file.c
index a77a1f2da5d63d43fda4fd8e73decd3fefbbe7c4..aa9b709fd328d7178cd1c4bdb417fb6f454472af 100644 (file)
@@ -529,6 +529,8 @@ static int nfs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
        if (mapping != dentry->d_inode->i_mapping)
                goto out_unlock;
 
+       wait_on_page_writeback(page);
+
        pagelen = nfs_page_length(page);
        if (pagelen == 0)
                goto out_unlock;