Lines Matching refs:file

35 #define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file))  argument
270 static int hostfs_readdir(struct file *file, struct dir_context *ctx) in hostfs_readdir() argument
278 name = dentry_name(file->f_path.dentry); in hostfs_readdir()
296 static int hostfs_open(struct inode *ino, struct file *file) in hostfs_open() argument
303 mode = file->f_mode & (FMODE_READ | FMODE_WRITE); in hostfs_open()
317 name = dentry_name(file->f_path.dentry); in hostfs_open()
355 static int hostfs_file_release(struct inode *inode, struct file *file) in hostfs_file_release() argument
362 static int hostfs_fsync(struct file *file, loff_t start, loff_t end, in hostfs_fsync() argument
365 struct inode *inode = file->f_mapping->host; in hostfs_fsync()
368 ret = file_write_and_wait_range(file, start, end); in hostfs_fsync()
433 static int hostfs_readpage(struct file *file, struct page *page) in hostfs_readpage() argument
440 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_readpage()
461 static int hostfs_write_begin(struct file *file, struct address_space *mapping, in hostfs_write_begin() argument
473 static int hostfs_write_end(struct file *file, struct address_space *mapping, in hostfs_write_end() argument
483 err = write_file(FILE_HOSTFS_I(file)->fd, &pos, buffer + from, copied); in hostfs_write_end()
642 char *file; in hostfs_unlink() local
648 if ((file = dentry_name(dentry)) == NULL) in hostfs_unlink()
651 err = unlink_file(file); in hostfs_unlink()
652 __putname(file); in hostfs_unlink()
659 char *file; in hostfs_symlink() local
662 if ((file = dentry_name(dentry)) == NULL) in hostfs_symlink()
664 err = make_symlink(file, to); in hostfs_symlink()
665 __putname(file); in hostfs_symlink()
671 char *file; in hostfs_mkdir() local
674 if ((file = dentry_name(dentry)) == NULL) in hostfs_mkdir()
676 err = do_mkdir(file, mode); in hostfs_mkdir()
677 __putname(file); in hostfs_mkdir()
683 char *file; in hostfs_rmdir() local
686 if ((file = dentry_name(dentry)) == NULL) in hostfs_rmdir()
688 err = hostfs_do_rmdir(file); in hostfs_rmdir()
689 __putname(file); in hostfs_rmdir()