Lines Matching refs:bit_pos
289 unsigned long bit_pos = 0; in f2fs_find_target_dentry() local
295 while (bit_pos < d->max) { in f2fs_find_target_dentry()
296 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
297 bit_pos++; in f2fs_find_target_dentry()
302 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
305 bit_pos++; in f2fs_find_target_dentry()
311 d->filename[bit_pos], in f2fs_find_target_dentry()
323 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry()
675 unsigned int bit_pos; in f2fs_has_enough_room() local
680 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room()
682 return bit_pos < d.max; in f2fs_has_enough_room()
687 unsigned int bit_pos) in f2fs_update_dentry() argument
693 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
696 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
700 __set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
710 unsigned int bit_pos; in f2fs_add_regular_entry() local
755 bit_pos = f2fs_room_for_filename(&dentry_blk->dentry_bitmap, in f2fs_add_regular_entry()
757 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_add_regular_entry()
780 bit_pos); in f2fs_add_regular_entry()
908 unsigned int bit_pos; in f2fs_delete_entry() local
924 bit_pos = dentry - dentry_blk->dentry; in f2fs_delete_entry()
926 __clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); in f2fs_delete_entry()
929 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_delete_entry()
934 if (bit_pos == NR_DENTRY_IN_BLOCK && in f2fs_delete_entry()
961 unsigned int bit_pos; in f2fs_empty_dir() local
979 bit_pos = 2; in f2fs_empty_dir()
981 bit_pos = 0; in f2fs_empty_dir()
982 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_empty_dir()
984 bit_pos); in f2fs_empty_dir()
988 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_empty_dir()
998 unsigned int bit_pos; in f2fs_fill_dentries() local
1007 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries()
1012 while (bit_pos < d->max) { in f2fs_fill_dentries()
1013 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
1014 if (bit_pos >= d->max) in f2fs_fill_dentries()
1017 de = &d->dentry[bit_pos]; in f2fs_fill_dentries()
1019 if (found_valid_dirent || !bit_pos) { in f2fs_fill_dentries()
1026 bit_pos++; in f2fs_fill_dentries()
1027 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()
1033 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
1037 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_fill_dentries()
1038 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
1070 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()