Searched refs:S_IFMT (Results 1 - 25 of 108) sorted by path

12345

/linux-master/include/linux/
H A Dfs_types.h30 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT)
31 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
/linux-master/arch/s390/kernel/
H A Ddebug.c316 rc->mode = mode & ~S_IFMT;
/linux-master/fs/9p/
H A Dvfs_inode.c273 switch (mode & S_IFMT) {
330 p9_debug(P9_DEBUG_ERROR, "BAD mode 0x%hx S_IFMT 0x%x\n",
331 mode, mode & S_IFMT);
/linux-master/fs/bcachefs/
H A Dfs.c1468 switch (inode->v.i_mode & S_IFMT) {
/linux-master/fs/btrfs/
H A Dinode.c3934 switch (inode->i_mode & S_IFMT) {
H A Dioctl.c2623 switch (inode->i_mode & S_IFMT) {
H A Dsend.c2890 (int)(mode & S_IFMT));
H A Dtree-checker.c1072 u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777);
1121 * S_IFMT is not bit mapped so we can't completely rely on
1125 if (!has_single_bit_set(mode & S_IFMT)) {
1129 mode & S_IFMT);
/linux-master/fs/ceph/
H A Dfile.c268 switch (inode->i_mode & S_IFMT) {
H A Dinode.c1174 switch (inode->i_mode & S_IFMT) {
/linux-master/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) {
H A Ddir.c542 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
/linux-master/fs/cramfs/
H A Dinode.c79 switch (cino->mode & S_IFMT) {
102 switch (cramfs_inode->mode & S_IFMT) {
/linux-master/fs/crypto/
H A Dkeysetup.c94 inode->i_ino, (inode->i_mode & S_IFMT));
/linux-master/fs/debugfs/
H A Dinode.c424 if (!(mode & S_IFMT))
/linux-master/fs/efivarfs/
H A Dinode.c34 switch (mode & S_IFMT) {
/linux-master/fs/efs/
H A Dinode.c145 switch (inode->i_mode & S_IFMT) {
/linux-master/fs/erofs/
H A Dinode.c118 switch (inode->i_mode & S_IFMT) {
229 switch (inode->i_mode & S_IFMT) {
/linux-master/fs/exfat/
H A Dfile.c117 perm = *mode_ptr & ~(S_IFMT | mask);
139 *mode_ptr &= S_IFMT | perm;
/linux-master/fs/ext4/
H A Dext4.h3622 static const unsigned char ext4_type_by_mode[(S_IFMT >> S_SHIFT) + 1] = {
3636 de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
/linux-master/fs/fat/
H A Dfile.c436 perm = *mode_ptr & ~(S_IFMT | mask);
454 *mode_ptr &= S_IFMT | perm;
/linux-master/fs/fuse/
H A Ddir.c629 BUG_ON((mode & S_IFMT) != S_IFREG);
815 if ((outarg.attr.mode ^ mode) & S_IFMT)
1139 stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
H A Dinode.c222 inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
385 inode->i_mode = attr->mode & S_IFMT;
/linux-master/fs/gfs2/
H A Dglops.c420 switch (mode & S_IFMT) {
H A Dinode.c514 switch(ip->i_inode.i_mode & S_IFMT) {
712 switch(mode & S_IFMT) {

Completed in 693 milliseconds

12345