diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-11 09:16:26 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-11 09:16:26 -0500 |
commit | 7ce0171d4f78992184faed87ea897d730b972965 (patch) | |
tree | 71dba7444672eb10244566e6f0ed7829f1e3abf5 /fs/nfs/write.c | |
parent | 1fa8064429d0acbf5bbf3c8a53f65679fdacc75e (diff) | |
parent | 81d9bce5309288086b58b4d97a644e495fef75f2 (diff) |
Merge branch 'bugfixes' into nfs-for-next
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index f5bc8e11713b..f608ca606b2b 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -879,7 +879,7 @@ static bool nfs_write_pageuptodate(struct page *page, struct inode *inode) | |||
879 | { | 879 | { |
880 | if (nfs_have_delegated_attributes(inode)) | 880 | if (nfs_have_delegated_attributes(inode)) |
881 | goto out; | 881 | goto out; |
882 | if (NFS_I(inode)->cache_validity & NFS_INO_REVAL_PAGECACHE) | 882 | if (NFS_I(inode)->cache_validity & (NFS_INO_INVALID_DATA|NFS_INO_REVAL_PAGECACHE)) |
883 | return false; | 883 | return false; |
884 | out: | 884 | out: |
885 | return PageUptodate(page) != 0; | 885 | return PageUptodate(page) != 0; |
@@ -1823,7 +1823,7 @@ int __init nfs_init_writepagecache(void) | |||
1823 | goto out_destroy_write_mempool; | 1823 | goto out_destroy_write_mempool; |
1824 | 1824 | ||
1825 | nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT, | 1825 | nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT, |
1826 | nfs_wdata_cachep); | 1826 | nfs_cdata_cachep); |
1827 | if (nfs_commit_mempool == NULL) | 1827 | if (nfs_commit_mempool == NULL) |
1828 | goto out_destroy_commit_cache; | 1828 | goto out_destroy_commit_cache; |
1829 | 1829 | ||