Skip to content

Commit 03acc4b

Browse files
committed
FS-Cache: Initialise the object event mask with the calculated mask
Initialise the object event mask with the calculated mask rather than unmasking undefined events also. Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 36a02de commit 03acc4b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/fscache/object.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ static void fscache_object_state_machine(struct fscache_object *object)
114114
/* wait for the parent object to become ready */
115115
case FSCACHE_OBJECT_INIT:
116116
object->event_mask =
117-
ULONG_MAX & ~(1 << FSCACHE_OBJECT_EV_CLEARED);
117+
FSCACHE_OBJECT_EVENTS_MASK &
118+
~(1 << FSCACHE_OBJECT_EV_CLEARED);
118119
fscache_initialise_object(object);
119120
goto done;
120121

0 commit comments

Comments
 (0)