• Ian Kent's avatar
    autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount · f55fb0c2
    Ian Kent authored
    The DCACHE_NEED_AUTOMOUNT flag is cleared on mount and set on expire
    for autofs rootless multi-mount dentrys to prevent unnecessary calls
    to ->d_automount().
    
    Since DCACHE_MANAGE_TRANSIT is always set on autofs dentrys ->d_managed()
    is always called so the check can be done in ->d_manage() without the
    need to change the flag. This still avoids unnecessary calls to
    ->d_automount(), adds negligible overhead and eliminates a seriously
    ugly check in the expire code.
    Signed-off-by: default avatarIan Kent <raven@themaw.net>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f55fb0c2
expire.c 13.4 KB