Lines Matching defs:victim
869 struct dentry *victim;
876 /* look up the victim */
880 victim = lookup_one_len(filename, dir, strlen(filename));
882 if (IS_ERR(victim))
885 //_debug("victim -> %p %s",
886 // victim, d_backing_inode(victim) ? "positive" : "negative");
891 if (d_is_negative(victim)) {
893 dput(victim);
906 if (object->dentry > victim)
908 else if (object->dentry < victim)
916 //_leave(" = %p", victim);
917 return victim;
922 dput(victim);
928 ret = PTR_ERR(victim);
953 struct dentry *victim;
958 victim = cachefiles_check_active(cache, dir, filename);
959 if (IS_ERR(victim))
960 return PTR_ERR(victim);
962 _debug("victim -> %p %s",
963 victim, d_backing_inode(victim) ? "positive" : "negative");
965 /* okay... the victim is not being used so we can cull it
968 _debug("victim is cullable");
970 ret = cachefiles_remove_object_xattr(cache, victim);
974 /* actually remove the victim (drops the dir mutex) */
977 ret = cachefiles_bury_object(cache, NULL, dir, victim, false,
982 dput(victim);
989 dput(victim);
1013 struct dentry *victim;
1018 victim = cachefiles_check_active(cache, dir, filename);
1019 if (IS_ERR(victim))
1020 return PTR_ERR(victim);
1023 dput(victim);