projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a02de
)
FS-Cache: Initialise the object event mask with the calculated mask
author
David Howells
<dhowells@redhat.com>
Wed, 5 Dec 2012 13:34:46 +0000
(13:34 +0000)
committer
David Howells
<dhowells@redhat.com>
Thu, 20 Dec 2012 22:08:39 +0000
(22:08 +0000)
Initialise the object event mask with the calculated mask rather than unmasking
undefined events also.
Signed-off-by: David Howells <dhowells@redhat.com>
fs/fscache/object.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fscache/object.c
b/fs/fscache/object.c
index 80b549141ea6a5de2afb8552ac3ac23c8da54ae5..2ef8a082a2728ff2bac7f9ba181ebba21fa533e5 100644
(file)
--- 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;