Home
last modified time | relevance | path

Searched refs:S_SHIFT (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/fs/nilfs2/
Ddir.c244 #define S_SHIFT 12 macro
246 nilfs_type_by_mode[S_IFMT >> S_SHIFT] = {
247 [S_IFREG >> S_SHIFT] = NILFS_FT_REG_FILE,
248 [S_IFDIR >> S_SHIFT] = NILFS_FT_DIR,
249 [S_IFCHR >> S_SHIFT] = NILFS_FT_CHRDEV,
250 [S_IFBLK >> S_SHIFT] = NILFS_FT_BLKDEV,
251 [S_IFIFO >> S_SHIFT] = NILFS_FT_FIFO,
252 [S_IFSOCK >> S_SHIFT] = NILFS_FT_SOCK,
253 [S_IFLNK >> S_SHIFT] = NILFS_FT_SYMLINK,
260 de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in nilfs_set_de_type()
/linux-6.6.21/fs/ext4/
Dext4.h3608 #define S_SHIFT 12 macro
3609 static const unsigned char ext4_type_by_mode[(S_IFMT >> S_SHIFT) + 1] = {
3610 [S_IFREG >> S_SHIFT] = EXT4_FT_REG_FILE,
3611 [S_IFDIR >> S_SHIFT] = EXT4_FT_DIR,
3612 [S_IFCHR >> S_SHIFT] = EXT4_FT_CHRDEV,
3613 [S_IFBLK >> S_SHIFT] = EXT4_FT_BLKDEV,
3614 [S_IFIFO >> S_SHIFT] = EXT4_FT_FIFO,
3615 [S_IFSOCK >> S_SHIFT] = EXT4_FT_SOCK,
3616 [S_IFLNK >> S_SHIFT] = EXT4_FT_SYMLINK,
3623 de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext4_set_de_type()