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)
270 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) {
271 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size));
272 entry = EXT4_XATTR_NEXT(entry);
275 if (((char *) entry) > end) {
280 return end - ((char *) entry);
287 static struct ext4_xattr_entry* xattr_get_last(struct ext4_xattr_entry *entry)
289 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
290 // skip entry
292 return entry;
313 static void xattr_assert_sane(struct ext4_xattr_entry *entry)
315 for( ; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
316 struct ext4_xattr_entry *next = EXT4_XATTR_NEXT(entry);
321 int cmp = next->e_name_index - entry->e_name_index;
323 cmp = next->e_name_len - entry->e_name_len;
325 cmp = memcmp(next->e_name, entry->e_name, next->e_name_len);
341 struct ext4_xattr_entry *entry)
344 char *name = entry->e_name;
347 for (n = 0; n < entry->e_name_len; n++) {
353 if (entry->e_value_block == 0 && entry->e_value_size != 0) {
355 le16_to_cpu(entry->e_value_offs));
356 for (n = (le32_to_cpu(entry->e_value_size) +
363 entry->e_hash = cpu_to_le32(hash);