Lines Matching refs:mode
44 umode_t mode; member
64 const struct inode *dir, umode_t mode, dev_t dev) in ramfs_get_inode() argument
70 inode_init_owner(inode, dir, mode); in ramfs_get_inode()
75 switch (mode & S_IFMT) { in ramfs_get_inode()
77 init_special_inode(inode, mode, dev); in ramfs_get_inode()
104 ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) in ramfs_mknod() argument
106 struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); in ramfs_mknod()
118 static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) in ramfs_mkdir() argument
120 int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); in ramfs_mkdir()
126 static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) in ramfs_create() argument
128 return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); in ramfs_create()
169 if (fsi->mount_opts.mode != RAMFS_DEFAULT_MODE) in ramfs_show_options()
170 seq_printf(m, ",mode=%o", fsi->mount_opts.mode); in ramfs_show_options()
210 fsi->mount_opts.mode = result.uint_32 & S_IALLUGO; in ramfs_parse_param()
229 inode = ramfs_get_inode(sb, NULL, S_IFDIR | fsi->mount_opts.mode, 0); in ramfs_fill_super()
261 fsi->mount_opts.mode = RAMFS_DEFAULT_MODE; in ramfs_init_fs_context()