Skip to content

Commit c2d35bf

Browse files
committed
FS-Cache: Don't mask off the object event mask when printing it
Don't mask off the object event mask when printing it. That way it can be seen if threre are bits set that shouldn't be. Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 03acc4b commit c2d35bf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎fs/cachefiles/namei.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ void __cachefiles_printk_object(struct cachefiles_object *object,
4040
printk(KERN_ERR "%sobjstate=%s fl=%lx wbusy=%x ev=%lx[%lx]\n",
4141
prefix, fscache_object_states[object->fscache.state],
4242
object->fscache.flags, work_busy(&object->fscache.work),
43-
object->fscache.events,
44-
object->fscache.event_mask & FSCACHE_OBJECT_EVENTS_MASK);
43+
object->fscache.events, object->fscache.event_mask);
4544
printk(KERN_ERR "%sops=%u inp=%u exc=%u\n",
4645
prefix, object->fscache.n_ops, object->fscache.n_in_progress,
4746
object->fscache.n_exclusive);

‎fs/fscache/object-list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int fscache_objlist_show(struct seq_file *m, void *v)
245245
obj->n_in_progress,
246246
obj->n_exclusive,
247247
atomic_read(&obj->n_reads),
248-
obj->event_mask & FSCACHE_OBJECT_EVENTS_MASK,
248+
obj->event_mask,
249249
obj->events,
250250
obj->flags,
251251
work_busy(&obj->work));

0 commit comments

Comments
 (0)