]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Don't invalidate callback if AFS_VNODE_DIR_VALID not set
authorDavid Howells <dhowells@redhat.com>
Tue, 14 May 2019 10:52:03 +0000 (11:52 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 May 2019 15:25:21 +0000 (16:25 +0100)
commitd652851983a3d012c901b52e06afdc0b6bb7c7ab
tree177e0597fd7ec898cf1ca8d87a0bb8f0b48ffbb2
parent9f6e95874a50269f7faabc73198363ad81dc3b49
afs: Don't invalidate callback if AFS_VNODE_DIR_VALID not set

Don't invalidate the callback promise on a directory if the
AFS_VNODE_DIR_VALID flag is not set (which indicates that the directory
contents are invalid, due to edit failure, callback break, page reclaim).

The directory will be reloaded next time the directory is accessed, so
clearing the callback flag at this point may race with a reload of the
directory and cancel it's recorded callback promise.

Fixes: c1d0b0b6149b ("afs: Fix directory handling")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/inode.c