Home
last modified time | relevance | path

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

/fs/cachefiles/
Dnamei.c849 struct dentry *victim; in cachefiles_check_active() local
860 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
862 if (IS_ERR(victim)) in cachefiles_check_active()
871 if (d_is_negative(victim)) { in cachefiles_check_active()
873 dput(victim); in cachefiles_check_active()
886 if (object->dentry > victim) in cachefiles_check_active()
888 else if (object->dentry < victim) in cachefiles_check_active()
897 return victim; in cachefiles_check_active()
902 dput(victim); in cachefiles_check_active()
908 ret = PTR_ERR(victim); in cachefiles_check_active()
[all …]
/fs/nfsd/
Dnfs4recover.c910 free_cld_upcall(struct cld_upcall *victim) in free_cld_upcall() argument
912 struct cld_net *cn = victim->cu_net; in free_cld_upcall()
915 list_del(&victim->cu_list); in free_cld_upcall()
917 kfree(victim); in free_cld_upcall()
/fs/btrfs/
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()
Dioctl.c777 static int btrfs_may_delete(struct inode *dir, struct dentry *victim, int isdir) in btrfs_may_delete() argument
781 if (d_really_is_negative(victim)) in btrfs_may_delete()
784 BUG_ON(d_inode(victim->d_parent) != dir); in btrfs_may_delete()
785 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in btrfs_may_delete()
792 if (check_sticky(dir, d_inode(victim)) || IS_APPEND(d_inode(victim)) || in btrfs_may_delete()
793 IS_IMMUTABLE(d_inode(victim)) || IS_SWAPFILE(d_inode(victim))) in btrfs_may_delete()
796 if (!d_is_dir(victim)) in btrfs_may_delete()
798 if (IS_ROOT(victim)) in btrfs_may_delete()
800 } else if (d_is_dir(victim)) in btrfs_may_delete()
804 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in btrfs_may_delete()
/fs/
Dlocks.c1790 struct file_lock *fl, *victim = NULL; in generic_delete_lease() local
1806 victim = fl; in generic_delete_lease()
1810 trace_generic_delete_lease(inode, victim); in generic_delete_lease()
1811 if (victim) in generic_delete_lease()
1812 error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose); in generic_delete_lease()
Dblock_dev.c1776 struct block_device *victim = NULL; in __blkdev_put() local
1800 victim = bdev->bd_contains; in __blkdev_put()
1808 if (victim) in __blkdev_put()
1809 __blkdev_put(victim, mode, 1); in __blkdev_put()
Dnamei.c2840 static int may_delete(struct vfsmount *mnt, struct inode *dir, struct dentry *victim, bool isdir) in may_delete() argument
2842 struct inode *inode = d_backing_inode(victim); in may_delete()
2845 if (d_is_negative(victim)) in may_delete()
2849 BUG_ON(victim->d_parent->d_inode != dir); in may_delete()
2850 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in may_delete()
2862 if (!d_is_dir(victim)) in may_delete()
2864 if (IS_ROOT(victim)) in may_delete()
2866 } else if (d_is_dir(victim)) in may_delete()
2870 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in may_delete()
/fs/ocfs2/
Dsuballoc.c1901 u16 victim, i; in ocfs2_claim_suballoc_bits() local
1945 victim = ocfs2_find_victim_chain(cl); in ocfs2_claim_suballoc_bits()
1946 ac->ac_chain = victim; in ocfs2_claim_suballoc_bits()
1962 trace_ocfs2_claim_suballoc_bits(victim); in ocfs2_claim_suballoc_bits()
1970 if (i == victim) in ocfs2_claim_suballoc_bits()
/fs/f2fs/
Dgc.c1102 static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, in __get_victim() argument
1109 ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, in __get_victim()