]> err.no Git - linux-2.6/blobdiff - fs/9p/vfs_file.c
[PATCH] nfsd4: recovery lookup dir check
[linux-2.6] / fs / 9p / vfs_file.c
index 6852f0eb96ed3a81641a75370bd2a2ce23df4ac7..c7e14d917215c0ca235db344b77aef8aebd285cf 100644 (file)
@@ -289,6 +289,9 @@ v9fs_file_write(struct file *filp, const char __user * data,
                total += result;
        } while (count);
 
+       if(inode->i_mapping->nrpages)
+               invalidate_inode_pages2(inode->i_mapping);
+
        return total;
 }
 
@@ -299,4 +302,5 @@ struct file_operations v9fs_file_operations = {
        .open = v9fs_file_open,
        .release = v9fs_dir_release,
        .lock = v9fs_file_lock,
+       .mmap = generic_file_mmap,
 };