Lines Matching refs:victim
832 struct dentry *victim; in cachefiles_check_active() local
843 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
845 if (IS_ERR(victim)) in cachefiles_check_active()
854 if (!victim->d_inode) { in cachefiles_check_active()
856 dput(victim); in cachefiles_check_active()
869 if (object->dentry > victim) in cachefiles_check_active()
871 else if (object->dentry < victim) in cachefiles_check_active()
880 return victim; in cachefiles_check_active()
885 dput(victim); in cachefiles_check_active()
891 ret = PTR_ERR(victim); in cachefiles_check_active()
916 struct dentry *victim; in cachefiles_cull() local
922 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_cull()
923 if (IS_ERR(victim)) in cachefiles_cull()
924 return PTR_ERR(victim); in cachefiles_cull()
927 victim, victim->d_inode ? "positive" : "negative"); in cachefiles_cull()
934 ret = cachefiles_remove_object_xattr(cache, victim); in cachefiles_cull()
941 ret = cachefiles_bury_object(cache, dir, victim, false); in cachefiles_cull()
945 dput(victim); in cachefiles_cull()
952 dput(victim); in cachefiles_cull()
976 struct dentry *victim; in cachefiles_check_in_use() local
981 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_check_in_use()
982 if (IS_ERR(victim)) in cachefiles_check_in_use()
983 return PTR_ERR(victim); in cachefiles_check_in_use()
986 dput(victim); in cachefiles_check_in_use()