Home
last modified time | relevance | path

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

/fs/cachefiles/
Dnamei.c832 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()
[all …]
/fs/nfsd/
Dnfs4recover.c771 free_cld_upcall(struct cld_upcall *victim) in free_cld_upcall() argument
773 struct cld_net *cn = victim->cu_net; in free_cld_upcall()
776 list_del(&victim->cu_list); in free_cld_upcall()
778 kfree(victim); in free_cld_upcall()
/fs/
Dnamei.c1978 static int may_delete(struct inode *dir,struct dentry *victim,int isdir) in may_delete() argument
1982 if (!victim->d_inode) in may_delete()
1985 BUG_ON(victim->d_parent->d_inode != dir); in may_delete()
1986 audit_inode_child(victim, dir); in may_delete()
1993 if (check_sticky(dir, victim->d_inode)||IS_APPEND(victim->d_inode)|| in may_delete()
1994 IS_IMMUTABLE(victim->d_inode) || IS_SWAPFILE(victim->d_inode)) in may_delete()
1997 if (!S_ISDIR(victim->d_inode->i_mode)) in may_delete()
1999 if (IS_ROOT(victim)) in may_delete()
2001 } else if (S_ISDIR(victim->d_inode->i_mode)) in may_delete()
2005 if (victim->d_flags & DCACHE_NFSFS_RENAMED) in may_delete()
Dblock_dev.c1469 struct block_device *victim = NULL; in __blkdev_put() local
1496 victim = bdev->bd_contains; in __blkdev_put()
1504 if (victim) in __blkdev_put()
1505 __blkdev_put(victim, mode, 1); in __blkdev_put()
/fs/btrfs/
Dioctl.c585 static int btrfs_may_delete(struct inode *dir,struct dentry *victim,int isdir) in btrfs_may_delete() argument
589 if (!victim->d_inode) in btrfs_may_delete()
592 BUG_ON(victim->d_parent->d_inode != dir); in btrfs_may_delete()
593 audit_inode_child(victim, dir); in btrfs_may_delete()
600 if (btrfs_check_sticky(dir, victim->d_inode)|| in btrfs_may_delete()
601 IS_APPEND(victim->d_inode)|| in btrfs_may_delete()
602 IS_IMMUTABLE(victim->d_inode) || IS_SWAPFILE(victim->d_inode)) in btrfs_may_delete()
605 if (!S_ISDIR(victim->d_inode->i_mode)) in btrfs_may_delete()
607 if (IS_ROOT(victim)) in btrfs_may_delete()
609 } else if (S_ISDIR(victim->d_inode->i_mode)) in btrfs_may_delete()
[all …]
/fs/ocfs2/
Dsuballoc.c1883 u16 victim, i; in ocfs2_claim_suballoc_bits() local
1929 victim = ocfs2_find_victim_chain(cl); in ocfs2_claim_suballoc_bits()
1930 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()