Lines Matching refs:file

24 static int hfsplus_readpage(struct file *file, struct page *page)  in hfsplus_readpage()  argument
44 static int hfsplus_write_begin(struct file *file, struct address_space *mapping, in hfsplus_write_begin() argument
51 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()
130 struct inode *inode = file_inode(file)->i_mapping->host; 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
278 int hfsplus_file_fsync(struct file *file, loff_t start, loff_t end, in hfsplus_file_fsync() argument
281 struct inode *inode = file->f_mapping->host; in hfsplus_file_fsync()
509 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_read_inode() local
517 &file->rsrc_fork : &file->data_fork); in hfsplus_cat_read_inode()
518 hfsplus_get_perms(inode, &file->permissions, 0); in hfsplus_cat_read_inode()
521 if (file->permissions.dev) in hfsplus_cat_read_inode()
523 be32_to_cpu(file->permissions.dev)); in hfsplus_cat_read_inode()
532 be32_to_cpu(file->permissions.dev)); in hfsplus_cat_read_inode()
534 inode->i_atime = hfsp_mt2ut(file->access_date); in hfsplus_cat_read_inode()
535 inode->i_mtime = hfsp_mt2ut(file->content_mod_date); in hfsplus_cat_read_inode()
536 inode->i_ctime = hfsp_mt2ut(file->attribute_mod_date); in hfsplus_cat_read_inode()
537 HFSPLUS_I(inode)->create_date = file->create_date; in hfsplus_cat_read_inode()
585 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_write_inode() local
588 hfsplus_inode_write_fork(inode, &file->rsrc_fork); in hfsplus_cat_write_inode()
592 struct hfsplus_cat_file *file = &entry.file; in hfsplus_cat_write_inode() local
598 hfsplus_inode_write_fork(inode, &file->data_fork); in hfsplus_cat_write_inode()
599 hfsplus_cat_set_perms(inode, &file->permissions); in hfsplus_cat_write_inode()
601 (file->permissions.rootflags | in hfsplus_cat_write_inode()
602 file->permissions.userflags)) in hfsplus_cat_write_inode()
603 file->flags |= cpu_to_be16(HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
605 file->flags &= cpu_to_be16(~HFSPLUS_FILE_LOCKED); in hfsplus_cat_write_inode()
606 file->access_date = hfsp_ut2mt(inode->i_atime); in hfsplus_cat_write_inode()
607 file->content_mod_date = hfsp_ut2mt(inode->i_mtime); in hfsplus_cat_write_inode()
608 file->attribute_mod_date = hfsp_ut2mt(inode->i_ctime); in hfsplus_cat_write_inode()