Lines Matching refs:file
90 struct file *file; member
109 if (vfs_statfs(&acct->file->f_path, &sbuf)) in check_free_space()
186 struct file *file = acct->file; in close_work() local
187 if (file->f_op->flush) in close_work()
188 file->f_op->flush(file, NULL); in close_work()
189 __fput_sync(file); in close_work()
195 struct file *file; in acct_on() local
207 file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0); in acct_on()
208 if (IS_ERR(file)) { in acct_on()
210 return PTR_ERR(file); in acct_on()
213 if (!S_ISREG(file_inode(file)->i_mode)) { in acct_on()
215 filp_close(file, NULL); in acct_on()
219 if (!(file->f_mode & FMODE_CAN_WRITE)) { in acct_on()
221 filp_close(file, NULL); in acct_on()
224 internal = mnt_clone_internal(&file->f_path); in acct_on()
227 filp_close(file, NULL); in acct_on()
234 filp_close(file, NULL); in acct_on()
237 mnt = file->f_path.mnt; in acct_on()
238 file->f_path.mnt = internal; in acct_on()
242 acct->file = file; in acct_on()
476 struct file *file = acct->file; in do_acct_process() local
484 orig_cred = override_creds(file->f_cred); in do_acct_process()
495 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process()
496 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
517 if (file_start_write_trylock(file)) { in do_acct_process()
520 __kernel_write(file, &ac, sizeof(acct_t), &pos); in do_acct_process()
521 file_end_write(file); in do_acct_process()