• Miklos Szeredi's avatar
    fuse: add "expire only" mode to FUSE_NOTIFY_INVAL_ENTRY · 4f8d3702
    Miklos Szeredi authored
    Add a flag to entry expiration that lets the filesystem expire a dentry
    without kicking it out from the cache immediately.
    
    This makes a difference for overmounted dentries, where plain invalidation
    would detach all submounts before dropping the dentry from the cache.  If
    only expiry is set on the dentry, then any overmounts are left alone and
    until ->d_revalidate() is called.
    
    Note: ->d_revalidate() is not called for the case of following a submount,
    so invalidation will only be triggered for the non-overmounted case.  The
    dentry could also be mounted in a different mount instance, in which case
    any submounts will still be detached.
    Suggested-by: default avatarJakob Blomer <jblomer@cern.ch>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    4f8d3702
fuse_i.h 32.6 KB