Lines Matching refs:namelen
201 const char *name, int namelen, in ocfs2_search_dirblock() argument
223 if (de_buf + namelen <= dlimit && in ocfs2_search_dirblock()
224 ocfs2_match(namelen, name, de)) { in ocfs2_search_dirblock()
252 int namelen, in ocfs2_find_entry_id() argument
270 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
382 static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen, in ocfs2_find_entry_el() argument
445 i = ocfs2_search_dirblock(bh, dir, name, namelen, in ocfs2_find_entry_el()
495 struct buffer_head *ocfs2_find_entry(const char *name, int namelen, in ocfs2_find_entry() argument
502 return ocfs2_find_entry_id(name, namelen, dir, res_dir); in ocfs2_find_entry()
504 return ocfs2_find_entry_el(name, namelen, dir, res_dir); in ocfs2_find_entry()
674 const char *name, int namelen, in __ocfs2_add_entry() argument
690 if (!namelen) in __ocfs2_add_entry()
700 rec_len = OCFS2_DIR_REC_LEN(namelen); in __ocfs2_add_entry()
713 if (ocfs2_match(namelen, name, de)) { in __ocfs2_add_entry()
724 namelen, name, namelen, in __ocfs2_add_entry()
761 de->name_len = namelen; in __ocfs2_add_entry()
762 memcpy(de->name, name, namelen); in __ocfs2_add_entry()
1071 int namelen, in ocfs2_find_files_on_disk() argument
1080 namelen, name, blkno, inode, dirent_bh, dirent); in ocfs2_find_files_on_disk()
1082 *dirent_bh = ocfs2_find_entry(name, namelen, inode, dirent); in ocfs2_find_files_on_disk()
1107 int namelen, u64 *blkno) in ocfs2_lookup_ino_from_name() argument
1113 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &bh, &dirent); in ocfs2_lookup_ino_from_name()
1128 int namelen) in ocfs2_check_dir_for_entry() argument
1135 (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); in ocfs2_check_dir_for_entry()
1138 dirent_bh = ocfs2_find_entry(name, namelen, dir, &dirent); in ocfs2_check_dir_for_entry()
1826 const char *name, int namelen, in ocfs2_find_dir_space_id() argument
1849 rec_len = OCFS2_DIR_REC_LEN(namelen); in ocfs2_find_dir_space_id()
1858 if (ocfs2_match(namelen, name, de)) { in ocfs2_find_dir_space_id()
1897 int namelen, struct buffer_head **ret_de_bh) in ocfs2_find_dir_space_el() argument
1913 rec_len = OCFS2_DIR_REC_LEN(namelen); in ocfs2_find_dir_space_el()
1943 if (ocfs2_match(namelen, name, de)) { in ocfs2_find_dir_space_el()
1977 int namelen, in ocfs2_prepare_dir_for_insert() argument
1985 namelen, (unsigned long long)OCFS2_I(dir)->ip_blkno); in ocfs2_prepare_dir_for_insert()
1989 if (!namelen) { in ocfs2_prepare_dir_for_insert()
1997 namelen, &bh, &blocks_wanted); in ocfs2_prepare_dir_for_insert()
1999 ret = ocfs2_find_dir_space_el(dir, name, namelen, &bh); in ocfs2_prepare_dir_for_insert()