Lines Matching refs:file

25 static int hfsplus_readpage(struct file *file, struct page *page)  in hfsplus_readpage()  argument
45 static int hfsplus_write_begin(struct file *file, struct address_space *mapping, in hfsplus_write_begin() argument
52 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hfsplus_write_begin()
128 struct file *file = iocb->ki_filp; in hfsplus_direct_IO() local
129 struct address_space *mapping = file->f_mapping; in hfsplus_direct_IO()
215 static int hfsplus_file_open(struct inode *inode, struct file *file) in hfsplus_file_open() argument
219 if (!(file->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) in hfsplus_file_open()
225 static int hfsplus_file_release(struct inode *inode, struct file *file) in hfsplus_file_release() argument
293 int hfsplus_file_fsync(struct file *file, loff_t start, loff_t end, in hfsplus_file_fsync() argument
296 struct inode *inode = file->f_mapping->host; in hfsplus_file_fsync()
301 error = file_write_and_wait_range(file, start, end); in hfsplus_file_fsync()
519 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_read_inode() local
527 &file->rsrc_fork : &file->data_fork); in hfsplus_cat_read_inode()
528 hfsplus_get_perms(inode, &file->permissions, 0); in hfsplus_cat_read_inode()
531 if (file->permissions.dev) in hfsplus_cat_read_inode()
533 be32_to_cpu(file->permissions.dev)); in hfsplus_cat_read_inode()
543 be32_to_cpu(file->permissions.dev)); in hfsplus_cat_read_inode()
545 inode->i_atime = hfsp_mt2ut(file->access_date); in hfsplus_cat_read_inode()
546 inode->i_mtime = hfsp_mt2ut(file->content_mod_date); in hfsplus_cat_read_inode()
547 inode->i_ctime = hfsp_mt2ut(file->attribute_mod_date); in hfsplus_cat_read_inode()
548 HFSPLUS_I(inode)->create_date = file->create_date; in hfsplus_cat_read_inode()
596 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_write_inode() local
599 hfsplus_inode_write_fork(inode, &file->rsrc_fork); in hfsplus_cat_write_inode()
603 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_write_inode() local
609 hfsplus_inode_write_fork(inode, &file->data_fork); in hfsplus_cat_write_inode()
610 hfsplus_cat_set_perms(inode, &file->permissions); in hfsplus_cat_write_inode()
612 (file->permissions.rootflags | in hfsplus_cat_write_inode()
613 file->permissions.userflags)) in hfsplus_cat_write_inode()
614 file->flags |= cpu_to_be16(HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
616 file->flags &= cpu_to_be16(~HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
617 file->access_date = hfsp_ut2mt(inode->i_atime); in hfsplus_cat_write_inode()
618 file->content_mod_date = hfsp_ut2mt(inode->i_mtime); in hfsplus_cat_write_inode()
619 file->attribute_mod_date = hfsp_ut2mt(inode->i_ctime); in hfsplus_cat_write_inode()