Lines Matching refs:bit_pos
214 unsigned long bit_pos = 0; in f2fs_find_target_dentry() local
220 while (bit_pos < d->max) { in f2fs_find_target_dentry()
221 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
222 bit_pos++; in f2fs_find_target_dentry()
227 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
230 bit_pos++; in f2fs_find_target_dentry()
236 d->filename[bit_pos], in f2fs_find_target_dentry()
248 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry()
604 unsigned int bit_pos; in f2fs_has_enough_room() local
609 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room()
611 return bit_pos < d.max; in f2fs_has_enough_room()
616 unsigned int bit_pos) in f2fs_update_dentry() argument
622 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
625 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
629 __set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
639 unsigned int bit_pos; in f2fs_add_regular_entry() local
682 bit_pos = f2fs_room_for_filename(&dentry_blk->dentry_bitmap, in f2fs_add_regular_entry()
684 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_add_regular_entry()
707 bit_pos); in f2fs_add_regular_entry()
843 unsigned int bit_pos; in f2fs_delete_entry() local
860 bit_pos = dentry - dentry_blk->dentry; in f2fs_delete_entry()
862 __clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); in f2fs_delete_entry()
865 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_delete_entry()
870 if (bit_pos == NR_DENTRY_IN_BLOCK && in f2fs_delete_entry()
893 unsigned int bit_pos; in f2fs_empty_dir() local
915 bit_pos = 2; in f2fs_empty_dir()
917 bit_pos = 0; in f2fs_empty_dir()
918 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_empty_dir()
920 bit_pos); in f2fs_empty_dir()
924 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_empty_dir()
936 unsigned int bit_pos; in f2fs_fill_dentries() local
945 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries()
950 while (bit_pos < d->max) { in f2fs_fill_dentries()
951 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
952 if (bit_pos >= d->max) in f2fs_fill_dentries()
955 de = &d->dentry[bit_pos]; in f2fs_fill_dentries()
957 if (found_valid_dirent || !bit_pos) { in f2fs_fill_dentries()
963 bit_pos++; in f2fs_fill_dentries()
964 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()
970 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
974 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_fill_dentries()
975 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
1007 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()