Lines Matching refs:entry
96 of each directory entry into dentries[i].inode, to be filled in later
97 when the inode for the entry is allocated. Returns the inode number of the
268 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end)
271 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) {
272 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size));
273 entry = EXT4_XATTR_NEXT(entry);
276 if (((char *) entry) > end) {
281 return end - ((char *) entry);
288 static struct ext4_xattr_entry* xattr_get_last(struct ext4_xattr_entry *entry)
290 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
291 // skip entry
293 return entry;
314 static void xattr_assert_sane(struct ext4_xattr_entry *entry)
316 for( ; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
317 struct ext4_xattr_entry *next = EXT4_XATTR_NEXT(entry);
322 int cmp = next->e_name_index - entry->e_name_index;
324 cmp = next->e_name_len - entry->e_name_len;
326 cmp = memcmp(next->e_name, entry->e_name, next->e_name_len);
342 struct ext4_xattr_entry *entry)
345 char *name = entry->e_name;
348 for (n = 0; n < entry->e_name_len; n++) {
354 if (entry->e_value_block == 0 && entry->e_value_size != 0) {
356 le16_to_cpu(entry->e_value_offs));
357 for (n = (le32_to_cpu(entry->e_value_size) +
364 entry->e_hash = cpu_to_le32(hash);