• Vivek Goyal's avatar
    ovl: set d->is_dir and d->opaque for last path element · 102b0d11
    Vivek Goyal authored
    Certain properties in ovl_lookup_data should be set only for the last
    element of the path. IOW, if we are calling ovl_lookup_single() for an
    absolute redirect, then d->is_dir and d->opaque do not make much sense
    for intermediate path elements. Instead set them only if dentry being
    lookup is last path element.
    
    As of now we do not seem to be making use of d->opaque if it is set for
    a path/dentry in lower. But just define the semantics so that future code
    can make use of this assumption.
    Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    102b0d11
namei.c 25.4 KB