Lines Matching defs:victim
886 * Check whether we can remove a link victim from directory dir, check
887 * whether the type of victim is right.
894 * b. be owner of victim, or
896 * 6. If the victim is append-only or immutable we can't do anything with
898 * 7. If we were asked to remove a directory and victim isn't one - ENOTDIR.
899 * 8. If we were asked to remove a non-directory and victim isn't one - EISDIR.
906 struct inode *dir, struct dentry *victim, int isdir)
910 if (d_really_is_negative(victim))
913 BUG_ON(d_inode(victim->d_parent) != dir);
914 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE);
921 if (check_sticky(idmap, dir, d_inode(victim)) ||
922 IS_APPEND(d_inode(victim)) || IS_IMMUTABLE(d_inode(victim)) ||
923 IS_SWAPFILE(d_inode(victim)))
926 if (!d_is_dir(victim))
928 if (IS_ROOT(victim))
930 } else if (d_is_dir(victim))
934 if (victim->d_flags & DCACHE_NFSFS_RENAMED)