• Home
  • Raw
  • Download

Lines Matching refs:ino

124 static char *inode_name(struct inode *ino)  in inode_name()  argument
129 dentry = d_find_alias(ino); in inode_name()
274 unsigned long long next, ino; in hostfs_readdir() local
287 while ((name = read_dir(dir, &next, &ino, &len, &type)) != NULL) { in hostfs_readdir()
288 if (!dir_emit(ctx, name, len, ino, type)) in hostfs_readdir()
296 static int hostfs_open(struct inode *ino, struct file *file) in hostfs_open() argument
304 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_open()
307 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
326 mutex_lock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
328 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_open()
329 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
333 if ((mode | HOSTFS_I(ino)->mode) != mode) { in hostfs_open()
334 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
335 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
339 if (HOSTFS_I(ino)->fd == -1) { in hostfs_open()
340 HOSTFS_I(ino)->fd = fd; in hostfs_open()
342 err = replace_file(fd, HOSTFS_I(ino)->fd); in hostfs_open()
345 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
349 HOSTFS_I(ino)->mode = mode; in hostfs_open()
350 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
509 static int read_name(struct inode *ino, char *name) in read_name() argument
522 ino->i_op = &hostfs_link_iops; in read_name()
525 ino->i_op = &hostfs_dir_iops; in read_name()
526 ino->i_fop = &hostfs_dir_fops; in read_name()
532 init_special_inode(ino, st.mode & S_IFMT, rdev); in read_name()
533 ino->i_op = &hostfs_iops; in read_name()
536 ino->i_op = &hostfs_iops; in read_name()
537 ino->i_fop = &hostfs_file_fops; in read_name()
538 ino->i_mapping->a_ops = &hostfs_aops; in read_name()
544 ino->i_ino = st.ino; in read_name()
545 ino->i_mode = st.mode; in read_name()
546 set_nlink(ino, st.nlink); in read_name()
547 i_uid_write(ino, st.uid); in read_name()
548 i_gid_write(ino, st.gid); in read_name()
549 ino->i_atime = (struct timespec64){ st.atime.tv_sec, st.atime.tv_nsec }; in read_name()
550 ino->i_mtime = (struct timespec64){ st.mtime.tv_sec, st.mtime.tv_nsec }; in read_name()
551 ino->i_ctime = (struct timespec64){ st.ctime.tv_sec, st.ctime.tv_nsec }; in read_name()
552 ino->i_size = st.size; in read_name()
553 ino->i_blocks = st.blocks; in read_name()
596 static struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, in hostfs_lookup() argument
603 inode = hostfs_iget(ino->i_sb); in hostfs_lookup()
621 static int hostfs_link(struct dentry *to, struct inode *ino, in hostfs_link() argument
640 static int hostfs_unlink(struct inode *ino, struct dentry *dentry) in hostfs_unlink() argument
656 static int hostfs_symlink(struct inode *ino, struct dentry *dentry, in hostfs_symlink() argument
669 static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) in hostfs_mkdir() argument
681 static int hostfs_rmdir(struct inode *ino, struct dentry *dentry) in hostfs_rmdir() argument
759 static int hostfs_permission(struct inode *ino, int desired) in hostfs_permission() argument
770 name = inode_name(ino); in hostfs_permission()
774 if (S_ISCHR(ino->i_mode) || S_ISBLK(ino->i_mode) || in hostfs_permission()
775 S_ISFIFO(ino->i_mode) || S_ISSOCK(ino->i_mode)) in hostfs_permission()
781 err = generic_permission(ino, desired); in hostfs_permission()