Home
last modified time | relevance | path

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

/fs/cachefiles/
Dnamei.c850 struct dentry *victim; in cachefiles_check_active() local
861 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
863 if (IS_ERR(victim)) in cachefiles_check_active()
872 if (d_is_negative(victim)) { in cachefiles_check_active()
874 dput(victim); in cachefiles_check_active()
887 if (object->dentry > victim) in cachefiles_check_active()
889 else if (object->dentry < victim) in cachefiles_check_active()
898 return victim; in cachefiles_check_active()
903 dput(victim); in cachefiles_check_active()
909 ret = PTR_ERR(victim); in cachefiles_check_active()
[all …]
/fs/nfsd/
Dnfs4recover.c915 free_cld_upcall(struct cld_upcall *victim) in free_cld_upcall() argument
917 struct cld_net *cn = victim->cu_net; in free_cld_upcall()
920 list_del(&victim->cu_list); in free_cld_upcall()
922 kfree(victim); in free_cld_upcall()
/fs/
Dblock_dev.c1577 struct block_device *victim = NULL; in __blkdev_put() local
1607 victim = bdev->bd_contains; in __blkdev_put()
1615 if (victim) in __blkdev_put()
1616 __blkdev_put(victim, mode, 1); in __blkdev_put()
Dlocks.c1780 struct file_lock *fl, *victim = NULL; in generic_delete_lease() local
1796 victim = fl; in generic_delete_lease()
1800 trace_generic_delete_lease(inode, victim); in generic_delete_lease()
1801 if (victim) in generic_delete_lease()
1802 error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose); in generic_delete_lease()
Dnamei.c2790 static int may_delete(struct vfsmount *mnt, struct inode *dir, struct dentry *victim, bool isdir) in may_delete() argument
2792 struct inode *inode = d_backing_inode(victim); in may_delete()
2795 if (d_is_negative(victim)) in may_delete()
2799 BUG_ON(victim->d_parent->d_inode != dir); in may_delete()
2800 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in may_delete()
2812 if (!d_is_dir(victim)) in may_delete()
2814 if (IS_ROOT(victim)) in may_delete()
2816 } else if (d_is_dir(victim)) in may_delete()
2820 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in may_delete()
/fs/btrfs/
Draid56.c336 struct btrfs_raid_bio *victim) in merge_rbio() argument
338 bio_list_merge(&dest->bio_list, &victim->bio_list); in merge_rbio()
339 dest->bio_list_bytes += victim->bio_list_bytes; in merge_rbio()
340 dest->generic_bio_cnt += victim->generic_bio_cnt; in merge_rbio()
341 bio_list_init(&victim->bio_list); in merge_rbio()
Dioctl.c792 static int btrfs_may_delete(struct inode *dir, struct dentry *victim, int isdir) in btrfs_may_delete() argument
796 if (d_really_is_negative(victim)) in btrfs_may_delete()
799 BUG_ON(d_inode(victim->d_parent) != dir); in btrfs_may_delete()
800 audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); in btrfs_may_delete()
807 if (check_sticky(dir, d_inode(victim)) || IS_APPEND(d_inode(victim)) || in btrfs_may_delete()
808 IS_IMMUTABLE(d_inode(victim)) || IS_SWAPFILE(d_inode(victim))) in btrfs_may_delete()
811 if (!d_is_dir(victim)) in btrfs_may_delete()
813 if (IS_ROOT(victim)) in btrfs_may_delete()
815 } else if (d_is_dir(victim)) in btrfs_may_delete()
819 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in btrfs_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.c921 static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, in __get_victim() argument
928 ret = DIRTY_I(sbi)->v_ops->get_victim(sbi, victim, gc_type, in __get_victim()