]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/cifs/cifsfs.c
cifs: make cifs_set_oplock_level() take a cifsInodeInfo pointer
[net-next-2.6.git] / fs / cifs / cifsfs.c
index 38526a6c4acf981a8e6d1aadceb00e7728d730b7..9c3789762ab7c4c92a7d67859c34b32cb196f1ab 100644 (file)
@@ -321,8 +321,7 @@ cifs_alloc_inode(struct super_block *sb)
        /* Until the file is open and we have gotten oplock
        info back from the server, can not assume caching of
        file data or metadata */
-       cifs_inode->clientCanCacheRead = false;
-       cifs_inode->clientCanCacheAll = false;
+       cifs_set_oplock_level(cifs_inode, 0);
        cifs_inode->delete_pending = false;
        cifs_inode->invalid_mapping = false;
        cifs_inode->vfs_inode.i_blkbits = 14;  /* 2**14 = CIFS_MAX_MSGSIZE */