• Eric Paris's avatar
    fsnotify: fix ignored mask handling between inode and vfsmount marks · 84e1ab4d
    Eric Paris authored
    The interesting 2 list lockstep walking didn't quite work out if the inode
    marks only had ignores and the vfsmount list requested events.  The code to
    shortcut list traversal would not run the inode list since it didn't have real
    event requests.  This code forces inode list traversal when a vfsmount mark
    matches the event type.  Maybe we could add an i_fsnotify_ignored_mask field
    to struct inode to get the shortcut back, but it doesn't seem worth it to grow
    struct inode again.
    
    I bet with the recent changes to lock the way we do now it would actually not
    be a major perf hit to just drop i_fsnotify_mark_mask altogether.  But that is
    for another day.
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    84e1ab4d
fsnotify.c 9.64 KB