]> git.baikalelectronics.ru Git - kernel.git/commit
AFS: checking wrong bit in afs_readpages()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 20 Mar 2012 16:58:06 +0000 (16:58 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Mar 2012 18:14:38 +0000 (11:14 -0700)
commit47d6d5c508c74bf7157c152836b7b2a7ad633460
treef926ff62ed28c3bec8527a94b0ac5e46556e8e38
parent53342326e4f6bc4d65c5916ee357233fcb2cb658
AFS: checking wrong bit in afs_readpages()

We should be testing "if (vnode->flags & (1 << 4))" instead of
"if (vnode->flags & 4) {".  The current test checks if the data was
modified instead of deleted.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/file.c