From: David Howells Date: Wed, 5 Dec 2012 13:34:46 +0000 (+0000) Subject: FS-Cache: Initialise the object event mask with the calculated mask X-Git-Tag: firefly_0821_release~3680^2~1354^2~28^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=03acc4be5e479eebc95338cd1d72a9954c128e2b;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/fs/fscache/object.c b/fs/fscache/object.c index 80b549141ea6..2ef8a082a272 100644 --- a/fs/fscache/object.c +++ b/fs/fscache/object.c @@ -114,7 +114,8 @@ static void fscache_object_state_machine(struct fscache_object *object) /* wait for the parent object to become ready */ case FSCACHE_OBJECT_INIT: object->event_mask = - ULONG_MAX & ~(1 << FSCACHE_OBJECT_EV_CLEARED); + FSCACHE_OBJECT_EVENTS_MASK & + ~(1 << FSCACHE_OBJECT_EV_CLEARED); fscache_initialise_object(object); goto done;