S_IFMT
rc->mode = mode & ~S_IFMT;
switch (mode & S_IFMT) {
mode, mode & S_IFMT);
stat->mode &= ~S_IFMT;
switch (vfs_inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
(int)(mode & S_IFMT));
u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777);
if (!has_single_bit_set(mode & S_IFMT)) {
mode & S_IFMT);
switch (inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
} else if ((inode->i_mode & S_IFMT) != inode_type) {
if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
switch (cramfs_inode->mode & S_IFMT) {
switch (cino->mode & S_IFMT) {
inode->i_ino, (inode->i_mode & S_IFMT));
if (!(mode & S_IFMT))
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
perm = *mode_ptr & ~(S_IFMT | mask);
*mode_ptr &= S_IFMT | perm;
static const unsigned char ext4_type_by_mode[(S_IFMT >> S_SHIFT) + 1] = {
de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
perm = *mode_ptr & ~(S_IFMT | mask);
*mode_ptr &= S_IFMT | perm;
if ((outarg.attr.mode ^ mode) & S_IFMT)
stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
BUG_ON((mode & S_IFMT) != S_IFREG);
inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
inode->i_mode = attr->mode & S_IFMT;
switch (mode & S_IFMT) {
switch(ip->i_inode.i_mode & S_IFMT) {
switch(mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (st->mode & S_IFMT) {
init_special_inode(ino, st->mode & S_IFMT, rdev);
(inode->i_mode & S_IFMT) == (st->mode & S_IFMT) &&
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12;
rd->type = (mode & S_IFMT) >> 12;
type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12;
switch (inode->i_mode & S_IFMT) {
switch(jemode_to_cpu(latest_node->mode) & S_IFMT) {
filetype = ip->i_mode & S_IFMT;
type = ip->i_mode & S_IFMT;
mode &= (mask_perms & ~S_IFMT);
mode |= (type & S_IFMT);
switch (inode->i_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT;
umode_t newmode = inode->i_mode & S_IFMT;
fattr->mode = (fattr->mode & ~S_IFMT) | S_IFIFO;
switch (sattr->ia_mode & S_IFMT) {
fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode;
switch (data->o_res.f_attr->mode & S_IFMT) {
*mode = tmp & ~S_IFMT;
sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR;
*p++ = cpu_to_be32(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]);
switch (args->stat.mode & S_IFMT) {
iattr->ia_mode &= (S_IFMT | S_IALLUGO);
iattr->ia_mode = mode & (S_IFMT | S_IALLUGO);
umode_t mode = d_inode(dentry)->i_mode & S_IFMT;
type = attr->ia_mode & S_IFMT;
mode = attr->ia_mode & ~S_IFMT;
type = inode->i_mode & S_IFMT;
type = inode->i_mode & S_IFMT;
mode = inode->i_mode & ~S_IFMT;
int type = stat->mode & S_IFMT;
type = d_inode(tfhp->fh_dentry)->i_mode & S_IFMT;
type = d_inode(rd.old_dentry)->i_mode & S_IFMT;
type = d_inode(rd.new_dentry)->i_mode & S_IFMT;
type = d_inode(rdentry)->i_mode & S_IFMT;
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
.mode = c->stat.mode & S_IFMT,
switch (attr->mode & S_IFMT) {
switch (mode & S_IFMT) {
upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
d_inode(origin)->i_mode & S_IFMT);
index, d_inode(index)->i_mode & S_IFMT, err);
index, d_inode(index)->i_mode & S_IFMT,
index, d_inode(index)->i_mode & S_IFMT,
d_inode(origin)->i_mode & S_IFMT);
if ((mode & S_IFMT) == 0)
stat->mode = (stat->mode & S_IFMT) | table->mode;
switch (mode & S_IFMT) {
key.type = (inode->i_mode & S_IFMT) >> 12;
fattr->cf_mode &= ~S_IFMT;
switch (inode->i_mode & S_IFMT) {
fattr->cf_mode &= ~S_IFMT;
fattr->cf_mode &= ~S_IFMT;
fattr->cf_mode &= ~S_IFMT;
switch (fattr->cf_mode & S_IFMT) {
switch (fattr->cf_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (ksmbd_kstat->kstat->mode & S_IFMT) {
switch (stat.mode & S_IFMT) {
if (inode->i_mode & S_IFMT)
if (!(mode & S_IFMT))
if (!(mode & S_IFMT))
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
umode_t mode = args->mode & S_IFMT;
switch (mode & S_IFMT) {
if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG)
switch (inode->i_mode & S_IFMT) {
switch (VFS_I(ip)->i_mode & S_IFMT) {
switch (args->mode & S_IFMT) {
switch (VFS_I(sc->ip)->i_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) {
switch (VFS_I(ip)->i_mode & S_IFMT) {
switch (ip->i_vnode.i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
switch (inode->i_mode & S_IFMT) {
buf->bs_mode = inode->i_mode & S_IFMT;
VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG;
.mode = S_IFLNK | (mode & ~S_IFMT),
return (inode->i_mode ^ mode) & S_IFMT;
#define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT)
#define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
show_inode_type(__entry->mode & S_IFMT),
#define DT2IF(dt) (((dt) << 12) & S_IFMT)
#define IF2DT(sif) (((sif) & S_IFMT) >> 12)
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
if (((*p)->mode ^ mode) & S_IFMT)
(st.mode ^ fmode) & S_IFMT) {
if (f->val & ~S_IFMT)
((n->mode & S_IFMT) == mode))
switch (mode & S_IFMT) {
switch (file_inode(file)->i_mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (files[i].mode & S_IFMT) {
printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT);
switch (stx->stx_mode & S_IFMT) {
switch (stx->stx_mode & S_IFMT) {
if (!(mode & S_IFMT))
if (!(mode & S_IFMT))
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
value = stat->mode & S_IFMT;
switch (mode & S_IFMT) {
switch (mode & S_IFMT) {
#if !defined(S_IFMT)
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
if ((st.st_mode & S_IFMT) != S_IFDIR) {
if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) {
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
return (st.st_mode & S_IFMT) == S_IFDIR;
if ((stat.st_mode & S_IFMT) != S_IFCHR || major(stat.st_rdev) != 226)
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
#define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
if ((sb.st_mode & S_IFMT) != S_IFREG) {