Home
last modified time | relevance | path

Searched refs:victim (Results 1 – 13 of 13) sorted by relevance

/fs/cachefiles/
Dnamei.c869 struct dentry *victim; in cachefiles_check_active() local
880 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
882 if (IS_ERR(victim)) in cachefiles_check_active()
891 if (d_is_negative(victim)) { in cachefiles_check_active()
893 dput(victim); in cachefiles_check_active()
906 if (object->dentry > victim) in cachefiles_check_active()
908 else if (object->dentry < victim) in cachefiles_check_active()
917 return victim; in cachefiles_check_active()
922 dput(victim); in cachefiles_check_active()
928 ret = PTR_ERR(victim); in cachefiles_check_active()
[all …]
/fs/erofs/
Ddecompressor.c45 struct page *victim; in z_erofs_lz4_prepare_destpages() local
73 victim = availables[--top]; in z_erofs_lz4_prepare_destpages()
74 get_page(victim); in z_erofs_lz4_prepare_destpages()
76 victim = erofs_allocpage(pagepool, GFP_KERNEL, false); in z_erofs_lz4_prepare_destpages()
77 if (!victim) in z_erofs_lz4_prepare_destpages()
79 victim->mapping = Z_EROFS_MAPPING_STAGING; in z_erofs_lz4_prepare_destpages()
81 rq->out[i] = victim; in z_erofs_lz4_prepare_destpages()
/fs/btrfs/
Dzstd.c117 struct workspace *victim = container_of(pos, struct workspace, in zstd_reclaim_timer_fn() local
121 if (time_after(victim->last_used, reclaim_threshold)) in zstd_reclaim_timer_fn()
125 if (victim->req_level) in zstd_reclaim_timer_fn()
128 level = victim->level; in zstd_reclaim_timer_fn()
129 list_del(&victim->lru_list); in zstd_reclaim_timer_fn()
130 list_del(&victim->list); in zstd_reclaim_timer_fn()
131 zstd_free_workspace(&victim->list); in zstd_reclaim_timer_fn()
Dioctl.c907 static int btrfs_may_delete(struct inode *dir, struct dentry *victim, int isdir) in btrfs_may_delete() argument
911 if (d_really_is_negative(victim)) in btrfs_may_delete()
914 BUG_ON(d_inode(victim->d_parent) != dir); in btrfs_may_delete()
915 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in btrfs_may_delete()
922 if (check_sticky(dir, d_inode(victim)) || IS_APPEND(d_inode(victim)) || in btrfs_may_delete()
923 IS_IMMUTABLE(d_inode(victim)) || IS_SWAPFILE(d_inode(victim))) in btrfs_may_delete()
926 if (!d_is_dir(victim)) in btrfs_may_delete()
928 if (IS_ROOT(victim)) in btrfs_may_delete()
930 } else if (d_is_dir(victim)) in btrfs_may_delete()
934 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in btrfs_may_delete()
Draid56.c333 struct btrfs_raid_bio *victim) in merge_rbio() argument
335 bio_list_merge(&dest->bio_list, &victim->bio_list); in merge_rbio()
336 dest->bio_list_bytes += victim->bio_list_bytes; in merge_rbio()
337 dest->generic_bio_cnt += victim->generic_bio_cnt; in merge_rbio()
338 bio_list_init(&victim->bio_list); in merge_rbio()
/fs/
Ddcache.c1467 struct dentry *victim; member
1512 data->victim = dentry; in select_collect2()
1554 data.victim = NULL; in shrink_dcache_parent()
1556 if (data.victim) { in shrink_dcache_parent()
1558 spin_lock(&data.victim->d_lock); in shrink_dcache_parent()
1559 if (!shrink_lock_dentry(data.victim)) { in shrink_dcache_parent()
1560 spin_unlock(&data.victim->d_lock); in shrink_dcache_parent()
1564 parent = data.victim->d_parent; in shrink_dcache_parent()
1565 if (parent != data.victim) in shrink_dcache_parent()
1567 __dentry_kill(data.victim); in shrink_dcache_parent()
[all …]
Dlocks.c1924 struct file_lock *fl, *victim = NULL; in generic_delete_lease() local
1940 victim = fl; in generic_delete_lease()
1944 trace_generic_delete_lease(inode, victim); in generic_delete_lease()
1945 if (victim) in generic_delete_lease()
1946 error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose); in generic_delete_lease()
Dblock_dev.c1855 struct block_device *victim = NULL; in __blkdev_put() local
1877 victim = bdev->bd_contains; in __blkdev_put()
1884 if (victim) in __blkdev_put()
1885 __blkdev_put(victim, mode, 1); in __blkdev_put()
Dnamei.c2881 static int may_delete(struct vfsmount *mnt, struct inode *dir, struct dentry *victim, bool isdir) in may_delete() argument
2883 struct inode *inode = d_backing_inode(victim); in may_delete()
2886 if (d_is_negative(victim)) in may_delete()
2890 BUG_ON(victim->d_parent->d_inode != dir); in may_delete()
2896 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in may_delete()
2908 if (!d_is_dir(victim)) in may_delete()
2910 if (IS_ROOT(victim)) in may_delete()
2912 } else if (d_is_dir(victim)) in may_delete()
2916 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in may_delete()
/fs/xfs/libxfs/
Dxfs_iext_tree.c726 void *victim) in xfs_iext_remove_node() argument
736 ASSERT(node->ptrs[pos] == victim); in xfs_iext_remove_node()
737 kmem_free(victim); in xfs_iext_remove_node()
771 victim = node; in xfs_iext_remove_node()
/fs/nfsd/
Dnfs4recover.c1092 free_cld_upcall(struct cld_upcall *victim) in free_cld_upcall() argument
1094 struct cld_net *cn = victim->cu_net; in free_cld_upcall()
1097 list_del(&victim->cu_list); in free_cld_upcall()
1099 kfree(victim); in free_cld_upcall()
/fs/ocfs2/
Dsuballoc.c1882 u16 victim, i; in ocfs2_claim_suballoc_bits() local
1926 victim = ocfs2_find_victim_chain(cl); in ocfs2_claim_suballoc_bits()
1927 ac->ac_chain = victim; in ocfs2_claim_suballoc_bits()
1943 trace_ocfs2_claim_suballoc_bits(victim); in ocfs2_claim_suballoc_bits()
1951 if (i == victim) in ocfs2_claim_suballoc_bits()
/fs/f2fs/
Dgc.c1140 static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, in __get_victim() argument
1147 ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, in __get_victim()