Lines Matching refs:f
46 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu() local
48 put_cred(f->f_cred); in file_free_rcu()
49 kmem_cache_free(filp_cachep, f); in file_free_rcu()
52 static inline void file_free(struct file *f) in file_free() argument
55 call_rcu(&f->f_u.fu_rcuhead, file_free_rcu); in file_free()
107 struct file *f; in get_empty_filp() local
122 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in get_empty_filp()
123 if (unlikely(!f)) in get_empty_filp()
127 f->f_cred = get_cred(cred); in get_empty_filp()
128 error = security_file_alloc(f); in get_empty_filp()
130 file_free(f); in get_empty_filp()
134 atomic_long_set(&f->f_count, 1); in get_empty_filp()
135 rwlock_init(&f->f_owner.lock); in get_empty_filp()
136 spin_lock_init(&f->f_lock); in get_empty_filp()
137 mutex_init(&f->f_pos_lock); in get_empty_filp()
138 eventpoll_init_file(f); in get_empty_filp()
140 return f; in get_empty_filp()