Lines Matching refs:bit_pos
69 unsigned long bit_pos = 0; in find_target_dentry() local
74 while (bit_pos < (unsigned long)d->max) { in find_target_dentry()
75 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
76 bit_pos++; in find_target_dentry()
81 de = &d->dentry[bit_pos]; in find_target_dentry()
84 !memcmp(d->filename[bit_pos], name, len)) { in find_target_dentry()
91 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in find_target_dentry()
201 unsigned int bit_pos) in f2fs_update_dentry() argument
207 de = &d->dentry[bit_pos]; in f2fs_update_dentry()
210 memcpy(d->filename[bit_pos], name, len); in f2fs_update_dentry()
211 d->filename[bit_pos][len] = 0; in f2fs_update_dentry()
215 test_and_set_bit_le(bit_pos + i, d->bitmap); in f2fs_update_dentry()
225 int level = 0, current_depth, bit_pos; in f2fs_add_link() local
281 bit_pos = room_for_filename(dentry_blk->dentry_bitmap, in f2fs_add_link()
284 if (bit_pos < NR_DENTRY_IN_BLOCK) in f2fs_add_link()
292 f2fs_update_dentry(ino, file_type, &d, name, name_len, dentry_hash, bit_pos); in f2fs_add_link()
559 unsigned long bit_pos = 0; in convert_inline_dentry() local
608 while (bit_pos < (unsigned long)d.max) { in convert_inline_dentry()
613 if (!test_bit_le(bit_pos, d.bitmap)) { in convert_inline_dentry()
614 bit_pos++; in convert_inline_dentry()
618 de = &d.dentry[bit_pos]; in convert_inline_dentry()
620 bit_pos++; in convert_inline_dentry()
624 filename = d.filename[bit_pos]; in convert_inline_dentry()
628 bit_pos += GET_DENTRY_SLOTS(namelen); in convert_inline_dentry()
640 bit_pos += GET_DENTRY_SLOTS(namelen); in convert_inline_dentry()