VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: David Howells <dhowells@redhat.com> 2012-12-05 13:34:49 +0000 committer: David Howells <dhowells@redhat.com> 2012-12-20 22:19:22 +0000 commit: 969695215f9a865cbf64c4ce3742ac9fc57fffed parent: 8c209ce721444a61b61d9e772746c721e4d8d1e8
Commit Summary:
FS-Cache: Add transition to handle invalidate immediately after lookup
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/fs/fscache/object.c b/fs/fscache/object.c
index 2c512cbac380..50d41c180211 100644
--- a/fs/fscache/object.c
+++ b/fs/fscache/object.c
@@ -284,6 +284,9 @@ lookup_transit:
 	case FSCACHE_OBJECT_EV_ERROR:
 		new_state = FSCACHE_OBJECT_LC_DYING;
 		goto change_state;
+	case FSCACHE_OBJECT_EV_INVALIDATE:
+		new_state = FSCACHE_OBJECT_INVALIDATING;
+		goto change_state;
 	case FSCACHE_OBJECT_EV_REQUEUE:
 		goto done;
 	case -1: