Lines Matching refs:mode
44 umode_t mode; member
57 const struct inode *dir, umode_t mode, dev_t dev) in ramfs_get_inode() argument
63 inode_init_owner(&init_user_ns, inode, dir, mode); in ramfs_get_inode()
68 switch (mode & S_IFMT) { in ramfs_get_inode()
70 init_special_inode(inode, mode, dev); in ramfs_get_inode()
98 struct dentry *dentry, umode_t mode, dev_t dev) in ramfs_mknod() argument
100 struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); in ramfs_mknod()
113 struct dentry *dentry, umode_t mode) in ramfs_mkdir() argument
115 int retval = ramfs_mknod(&init_user_ns, dir, dentry, mode | S_IFDIR, 0); in ramfs_mkdir()
122 struct dentry *dentry, umode_t mode, bool excl) in ramfs_create() argument
124 return ramfs_mknod(&init_user_ns, dir, dentry, mode | S_IFREG, 0); in ramfs_create()
148 struct inode *dir, struct dentry *dentry, umode_t mode) in ramfs_tmpfile() argument
152 inode = ramfs_get_inode(dir->i_sb, dir, mode, 0); in ramfs_tmpfile()
179 if (fsi->mount_opts.mode != RAMFS_DEFAULT_MODE) in ramfs_show_options()
180 seq_printf(m, ",mode=%o", fsi->mount_opts.mode); in ramfs_show_options()
220 fsi->mount_opts.mode = result.uint_32 & S_IALLUGO; in ramfs_parse_param()
239 inode = ramfs_get_inode(sb, NULL, S_IFDIR | fsi->mount_opts.mode, 0); in ramfs_fill_super()
271 fsi->mount_opts.mode = RAMFS_DEFAULT_MODE; in ramfs_init_fs_context()