Lines Matching defs:mode
185 u16 mode;
187 mode = be16_to_cpu(perms->mode);
190 if ((test_bit(HFSPLUS_SB_UID, &sbi->flags)) || (!i_uid_read(inode) && !mode))
194 if ((test_bit(HFSPLUS_SB_GID, &sbi->flags)) || (!i_gid_read(inode) && !mode))
198 mode = mode ? (mode & S_IALLUGO) : (S_IRWXUGO & ~(sbi->umask));
199 mode |= S_IFDIR;
200 } else if (!mode)
201 mode = S_IFREG | ((S_IRUGO|S_IWUGO) & ~(sbi->umask));
202 inode->i_mode = mode;
369 umode_t mode)
379 inode_init_owner(inode, dir, mode);