Searched refs:i_mode (Results 1 – 5 of 5) sorted by relevance
73 uint16_t i_mode; member173 uint16_t i_mode; /* mode */ member
472 if (!(next->i_mode & EXT2_S_IFDIR)) { in ext2_lookup_inode()887 inode->i_mode = type == FS_DIR_ENTRY_FILE ? EXT2_DEF_FILE_MODE : EXT2_DEF_DIR_MODE; in ext2_create_inode()1236 ret = ext2_free_inode(inode->i_fs, inode->i_id, IS_DIR(inode->i_mode)); in remove_inode()1242 if (!IS_DIR(inode->i_mode)) { in can_unlink()1292 if ((IS_REG_FILE(inode->i_mode) && inode->i_links_count == 1) || in ext2_inode_unlink()1293 (IS_DIR(inode->i_mode) && inode->i_links_count == 2)) { in ext2_inode_unlink()
108 inode->i_mode = sys_le16_to_cpu(dino->i_mode); in fill_inode()119 dino->i_mode = sys_cpu_to_le16(inode->i_mode); in fill_disk_inode()397 LOG_DBG("mode:%d size:%d links:%d", dino->i_mode, dino->i_size, dino->i_links_count); in ext2_fetch_inode()
88 if ((found_inode->i_mode & EXT2_S_IFMT) != EXT2_S_IFREG) { in ext2_open()307 if (!(found_inode->i_mode & EXT2_S_IFDIR)) { in ext2_opendir()
78 in->i_mode = sys_cpu_to_le16(EXT2_DEF_DIR_MODE); in default_directory_inode()