Skip to content

Commit

Permalink
FS-Cache: Initialise the object event mask with the calculated mask
Browse files Browse the repository at this point in the history
Initialise the object event mask with the calculated mask rather than unmasking
undefined events also.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Dec 20, 2012
1 parent 36a02de commit 03acc4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/fscache/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 03acc4b

Please sign in to comment.