Name

is_subdir — is new dentry a subdirectory of old_dentry

Synopsis

int is_subdir (struct dentry * new_dentry,
 struct dentry * old_dentry);
 

Arguments

new_dentry

new dentry

old_dentry

old dentry

Description

Returns 1 if new_dentry is a subdirectory of the parent (at any depth). Returns 0 otherwise. Caller must ensure that new_dentry is pinned before calling is_subdir