Lines Matching refs:bit_pos
257 unsigned long bit_pos = 0; in f2fs_find_target_dentry() local
263 while (bit_pos < d->max) { in f2fs_find_target_dentry()
264 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
265 bit_pos++; in f2fs_find_target_dentry()
270 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
273 bit_pos++; in f2fs_find_target_dentry()
279 d->filename[bit_pos], in f2fs_find_target_dentry()
291 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry()
647 unsigned int bit_pos; in f2fs_has_enough_room() local
652 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room()
654 return bit_pos < d.max; in f2fs_has_enough_room()
659 unsigned int bit_pos) in f2fs_update_dentry() argument
665 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
668 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
672 __set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
682 unsigned int bit_pos; in f2fs_add_regular_entry() local
725 bit_pos = f2fs_room_for_filename(&dentry_blk->dentry_bitmap, in f2fs_add_regular_entry()
727 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_add_regular_entry()
750 bit_pos); in f2fs_add_regular_entry()
886 unsigned int bit_pos; in f2fs_delete_entry() local
902 bit_pos = dentry - dentry_blk->dentry; in f2fs_delete_entry()
904 __clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); in f2fs_delete_entry()
907 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_delete_entry()
912 if (bit_pos == NR_DENTRY_IN_BLOCK && in f2fs_delete_entry()
935 unsigned int bit_pos; in f2fs_empty_dir() local
957 bit_pos = 2; in f2fs_empty_dir()
959 bit_pos = 0; in f2fs_empty_dir()
960 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_empty_dir()
962 bit_pos); in f2fs_empty_dir()
966 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_empty_dir()
978 unsigned int bit_pos; in f2fs_fill_dentries() local
987 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries()
992 while (bit_pos < d->max) { in f2fs_fill_dentries()
993 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
994 if (bit_pos >= d->max) in f2fs_fill_dentries()
997 de = &d->dentry[bit_pos]; in f2fs_fill_dentries()
999 if (found_valid_dirent || !bit_pos) { in f2fs_fill_dentries()
1005 bit_pos++; in f2fs_fill_dentries()
1006 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()
1012 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
1016 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_fill_dentries()
1017 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
1049 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()