dnotify: do not bother to lock entry->lock when reading mask
authorEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 15:09:47 +0000 (11:09 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 18:57:54 +0000 (14:57 -0400)
commitce61856bd2aadb064f595e5c0444376a2b117c41
tree4a438d07fbce1acbb3970b631211aaf445f2e41b
parent5ac697b793a3c45005c568df692518da6e690390
dnotify: do not bother to lock entry->lock when reading mask

entry->lock is needed to make sure entry->mask does not change while
manipulating it.  In dnotify_should_send_event() we don't care if we get an
old or a new mask value out of this entry so there is no point it taking
the lock.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/dnotify/dnotify.c