Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -1
+2 -1
fs/fscache/object.c
··· 114 114 /* wait for the parent object to become ready */ 115 115 case FSCACHE_OBJECT_INIT: 116 116 object->event_mask = 117 - ULONG_MAX & ~(1 << FSCACHE_OBJECT_EV_CLEARED); 117 + FSCACHE_OBJECT_EVENTS_MASK & 118 + ~(1 << FSCACHE_OBJECT_EV_CLEARED); 118 119 fscache_initialise_object(object); 119 120 goto done; 120 121