• Home
  • Raw
  • Download

Lines Matching refs:entry

210 	struct f2fs_xattr_entry *entry;  in __find_xattr()  local
212 list_for_each_xattr(entry, base_addr) { in __find_xattr()
213 if ((void *)(entry) + sizeof(__u32) > last_base_addr || in __find_xattr()
214 (void *)XATTR_NEXT_ENTRY(entry) > last_base_addr) in __find_xattr()
217 if (entry->e_name_index != index) in __find_xattr()
219 if (entry->e_name_len != len) in __find_xattr()
221 if (!memcmp(entry->e_name, name, len)) in __find_xattr()
224 return entry; in __find_xattr()
231 struct f2fs_xattr_entry *entry; in __find_inline_xattr() local
235 list_for_each_xattr(entry, base_addr) { in __find_inline_xattr()
236 if ((void *)entry + sizeof(__u32) > max_addr || in __find_inline_xattr()
237 (void *)XATTR_NEXT_ENTRY(entry) > max_addr) { in __find_inline_xattr()
238 *last_addr = entry; in __find_inline_xattr()
241 if (entry->e_name_index != index) in __find_inline_xattr()
243 if (entry->e_name_len != len) in __find_inline_xattr()
245 if (!memcmp(entry->e_name, name, len)) in __find_inline_xattr()
250 if (IS_XATTR_LAST_ENTRY(entry) && in __find_inline_xattr()
251 (void *)entry + sizeof(__u32) > max_addr) { in __find_inline_xattr()
252 *last_addr = entry; in __find_inline_xattr()
255 return entry; in __find_inline_xattr()
497 struct f2fs_xattr_entry *entry = NULL; in f2fs_getxattr() local
512 &entry, &base_addr, &base_size); in f2fs_getxattr()
517 size = le16_to_cpu(entry->e_value_size); in f2fs_getxattr()
525 char *pval = entry->e_name + entry->e_name_len; in f2fs_getxattr()
543 struct f2fs_xattr_entry *entry; in f2fs_listxattr() local
556 list_for_each_xattr(entry, base_addr) { in f2fs_listxattr()
558 f2fs_xattr_handler(entry->e_name_index); in f2fs_listxattr()
563 if ((void *)(entry) + sizeof(__u32) > last_base_addr || in f2fs_listxattr()
564 (void *)XATTR_NEXT_ENTRY(entry) > last_base_addr) { in f2fs_listxattr()
577 size = prefix_len + entry->e_name_len + 1; in f2fs_listxattr()
585 memcpy(buffer, entry->e_name, entry->e_name_len); in f2fs_listxattr()
586 buffer += entry->e_name_len; in f2fs_listxattr()
597 static bool f2fs_xattr_value_same(struct f2fs_xattr_entry *entry, in f2fs_xattr_value_same() argument
600 void *pval = entry->e_name + entry->e_name_len; in f2fs_xattr_value_same()
602 return (le16_to_cpu(entry->e_value_size) == size) && in f2fs_xattr_value_same()