Lines Matching refs:entry
92 of each directory entry into dentries[i].inode, to be filled in later
93 when the inode for the entry is allocated. Returns the inode number of the
258 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end)
260 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) {
261 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size));
262 entry = EXT4_XATTR_NEXT(entry);
265 if (((char *) entry) > end) {
270 return end - ((char *) entry);
277 static struct ext4_xattr_entry* xattr_get_last(struct ext4_xattr_entry *entry)
279 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
280 // skip entry
282 return entry;
303 static void xattr_assert_sane(struct ext4_xattr_entry *entry)
305 for( ; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) {
306 struct ext4_xattr_entry *next = EXT4_XATTR_NEXT(entry);
311 int cmp = next->e_name_index - entry->e_name_index;
313 cmp = next->e_name_len - entry->e_name_len;
315 cmp = memcmp(next->e_name, entry->e_name, next->e_name_len);
331 struct ext4_xattr_entry *entry)
334 char *name = entry->e_name;
337 for (n = 0; n < entry->e_name_len; n++) {
343 if (entry->e_value_block == 0 && entry->e_value_size != 0) {
345 le16_to_cpu(entry->e_value_offs));
346 for (n = (le32_to_cpu(entry->e_value_size) +
353 entry->e_hash = cpu_to_le32(hash);