Quick fix for readpages when using memcache
authorChas Williams <chas@cmf.nrl.navy.mil>
Tue, 5 Jan 2010 00:18:36 +0000 (00:18 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 14 Jan 2010 15:26:21 +0000 (07:26 -0800)
Just don't do readpages if we're using memcache

Change-Id: I6b8b45f291d106ad1303d5bea1caf7f910b7ecf4
Reviewed-on: http://gerrit.openafs.org/1061
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/LINUX/osi_vnodeops.c

index 01d8e01..a72b752 100644 (file)
@@ -1949,6 +1949,9 @@ afs_linux_readpages(struct file *fp, struct address_space *mapping,
     if (afs_linux_bypass_check(inode))
        return afs_linux_bypass_readpages(fp, mapping, page_list, num_pages);
 
+    if (cacheDiskType == AFS_FCACHE_TYPE_MEM)
+       return 0;
+
     AFS_GLOCK();
     if ((code = afs_linux_VerifyVCache(avc, NULL))) {
        AFS_GUNLOCK();