Lines Matching defs:victim
2681 * Check whether we can remove a link victim from directory dir, check
2682 * whether the type of victim is right.
2689 * b. be owner of victim, or
2691 * 6. If the victim is append-only or immutable we can't do antyhing with
2693 * 7. If the victim has an unknown uid or gid we can't change the inode.
2694 * 8. If we were asked to remove a directory and victim isn't one - ENOTDIR.
2695 * 9. If we were asked to remove a non-directory and victim isn't one - EISDIR.
2700 static int may_delete(struct inode *dir, struct dentry *victim, bool isdir)
2702 struct inode *inode = d_backing_inode(victim);
2705 if (d_is_negative(victim))
2709 BUG_ON(victim->d_parent->d_inode != dir);
2715 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE);
2727 if (!d_is_dir(victim))
2729 if (IS_ROOT(victim))
2731 } else if (d_is_dir(victim))
2735 if (victim->d_flags & DCACHE_NFSFS_RENAMED)
3858 * @dentry: victim
3859 * @delegated_inode: returns victim inode, if the inode is delegated.
4266 * c) we may have to lock up to _four_ objects - parents and victim (if it exists),
4352 * a victim.