Lines Matching refs:mode
25 fmode_t mode; member
227 hi->mode = 0; in hostfs_alloc_inode()
299 fmode_t mode; in hostfs_open() local
303 mode = file->f_mode & (FMODE_READ | FMODE_WRITE); in hostfs_open()
304 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_open()
307 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
312 if (mode & FMODE_READ) in hostfs_open()
314 if (mode & FMODE_WRITE) in hostfs_open()
328 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_open()
333 if ((mode | HOSTFS_I(ino)->mode) != mode) { in hostfs_open()
334 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
349 HOSTFS_I(ino)->mode = mode; in hostfs_open()
520 switch (st.mode & S_IFMT) { in read_name()
532 init_special_inode(ino, st.mode & S_IFMT, rdev); in read_name()
545 ino->i_mode = st.mode; in read_name()
557 static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in hostfs_create() argument
575 fd = file_create(name, mode & 0777); in hostfs_create()
586 HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; in hostfs_create()
669 static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) in hostfs_mkdir() argument
676 err = do_mkdir(file, mode); in hostfs_mkdir()
693 static int hostfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) in hostfs_mknod() argument
710 init_special_inode(inode, mode, dev); in hostfs_mknod()
711 err = do_mknod(name, mode, MAJOR(dev), MINOR(dev)); in hostfs_mknod()