Lines Matching defs:victim
2932 * Check whether we can remove a link victim from directory dir, check
2933 * whether the type of victim is right.
2940 * b. be owner of victim, or
2942 * 6. If the victim is append-only or immutable we can't do antyhing with
2944 * 7. If the victim has an unknown uid or gid we can't change the inode.
2945 * 8. If we were asked to remove a directory and victim isn't one - ENOTDIR.
2946 * 9. If we were asked to remove a non-directory and victim isn't one - EISDIR.
2952 struct dentry *victim, bool isdir)
2954 struct inode *inode = d_backing_inode(victim);
2957 if (d_is_negative(victim))
2961 BUG_ON(victim->d_parent->d_inode != dir);
2968 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE);
2981 if (!d_is_dir(victim))
2983 if (IS_ROOT(victim))
2985 } else if (d_is_dir(victim))
2989 if (victim->d_flags & DCACHE_NFSFS_RENAMED)
4283 * @dentry: victim
4284 * @delegated_inode: returns victim inode, if the inode is delegated.
4733 * c) we may have to lock up to _four_ objects - parents and victim (if it exists),
4826 * a victim.