• Home
  • Raw
  • Download

Lines Matching refs:bit_pos

256 	unsigned long bit_pos = 0;  in f2fs_find_target_dentry()  local
262 while (bit_pos < d->max) { in f2fs_find_target_dentry()
263 if (!test_bit_le(bit_pos, d->bitmap)) { in f2fs_find_target_dentry()
264 bit_pos++; in f2fs_find_target_dentry()
269 de = &d->dentry[bit_pos]; in f2fs_find_target_dentry()
272 bit_pos++; in f2fs_find_target_dentry()
278 d->filename[bit_pos], in f2fs_find_target_dentry()
290 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_find_target_dentry()
646 unsigned int bit_pos; in f2fs_has_enough_room() local
651 bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max); in f2fs_has_enough_room()
653 return bit_pos < d.max; in f2fs_has_enough_room()
658 unsigned int bit_pos) in f2fs_update_dentry() argument
664 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
667 memcpy(d->filename[bit_pos], name->name, name->len); in f2fs_update_dentry()
671 __set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
681 unsigned int bit_pos; in f2fs_add_regular_entry() local
724 bit_pos = f2fs_room_for_filename(&dentry_blk->dentry_bitmap, in f2fs_add_regular_entry()
726 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_add_regular_entry()
749 bit_pos); in f2fs_add_regular_entry()
884 unsigned int bit_pos; in f2fs_delete_entry() local
900 bit_pos = dentry - dentry_blk->dentry; in f2fs_delete_entry()
902 __clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); in f2fs_delete_entry()
905 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_delete_entry()
910 if (bit_pos == NR_DENTRY_IN_BLOCK && in f2fs_delete_entry()
933 unsigned int bit_pos; in f2fs_empty_dir() local
955 bit_pos = 2; in f2fs_empty_dir()
957 bit_pos = 0; in f2fs_empty_dir()
958 bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, in f2fs_empty_dir()
960 bit_pos); in f2fs_empty_dir()
964 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_empty_dir()
976 unsigned int bit_pos; in f2fs_fill_dentries() local
985 bit_pos = ((unsigned long)ctx->pos % d->max); in f2fs_fill_dentries()
990 while (bit_pos < d->max) { in f2fs_fill_dentries()
991 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
992 if (bit_pos >= d->max) in f2fs_fill_dentries()
995 de = &d->dentry[bit_pos]; in f2fs_fill_dentries()
997 if (found_valid_dirent || !bit_pos) { in f2fs_fill_dentries()
1004 bit_pos++; in f2fs_fill_dentries()
1005 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()
1011 de_name.name = d->filename[bit_pos]; in f2fs_fill_dentries()
1015 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in f2fs_fill_dentries()
1016 if (unlikely(bit_pos > d->max || in f2fs_fill_dentries()
1048 ctx->pos = start_pos + bit_pos; in f2fs_fill_dentries()