Lines Matching refs:mode
621 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode)
632 switch (mode) {
638 critical_error("recurse_dir() called witn unknown mode!\n");
680 if (((mode == SANITY_CHECK_PASS) || (mode == UPDATE_INODE_NUMS)) &&
711 is_dir = is_entry_dir(fd, dirp, mode);
713 ((mode == SANITY_CHECK_PASS) || (mode == MARK_INODE_NUMS) ||
714 ((mode == UPDATE_INODE_NUMS) && (dirp->inode & 0x80000000))) ) {
737 recurse_dir(fd, &tmp_inode, tmp_dirbuf, tmp_dirsize, mode);
750 /* Process entry based on current mode. Either set high bit or change inode number */
751 if (mode == MARK_INODE_NUMS) {
753 } else if (mode == UPDATE_INODE_NUMS) {
759 if ((bail_phase == mode) && (bail_loc == 1) && (bail_count == count)) {
760 critical_error("Bailing at phase %d, loc 1 and count %d\n", mode, count);
771 if ((bail_phase == mode) && (bail_loc == 2) && (bail_count <= count)) {
772 critical_error("Bailing at phase %d, loc 2 and count %d\n", mode, count);