ext4: use s_mount_flags instead of s_mount_state for fast commit state
[linux-2.6-microblaze.git] / fs / nfsd / filecache.c
index c8b9d26..3c6c2f7 100644 (file)
@@ -889,7 +889,7 @@ nfsd_file_find_locked(struct inode *inode, unsigned int may_flags,
 
        hlist_for_each_entry_rcu(nf, &nfsd_file_hashtbl[hashval].nfb_head,
                                 nf_node, lockdep_is_held(&nfsd_file_hashtbl[hashval].nfb_lock)) {
-               if ((need & nf->nf_may) != need)
+               if (nf->nf_may != need)
                        continue;
                if (nf->nf_inode != inode)
                        continue;