• Christoph Hellwig's avatar
    fsnotify: use dget_parent · 4d4eb366
    Christoph Hellwig authored
    Use dget_parent instead of opencoding it.  This simplifies the code, but
    more importanly prepares for the more complicated locking for a parent
    dget in the dcache scale patch series.
    
    It means we do grab a reference to the parent now if need to be watched,
    but not with the specified mask.  If this turns out to be a problem
    we'll have to revisit it, but for now let's keep as much as possible
    dcache internals inside dcache.[ch].
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    4d4eb366
fsnotify.c 9.03 KB