OSDN Git Service

fanotify: don't recalculate a marks mask if only the ignored mask changed
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Tue, 10 Feb 2015 22:08:24 +0000 (14:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:28 +0000 (14:30 -0800)
commitd2c1874ce687c175b544bc28b6187bf03735a931
tree0380096d752790810a57cd74573c27e355cabb4a
parenta118449a7792ea800db6f23cf6c1d2f937c2629a
fanotify: don't recalculate a marks mask if only the ignored mask changed

If removing bits from a mark's ignored mask, the concerning
inodes/vfsmounts mask is not affected.  So don't recalculate it.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/fanotify/fanotify_user.c