• Home
  • Raw
  • Download

Lines Matching refs:entry

183 ext4_xattr_check_entries(struct ext4_xattr_entry *entry, void *end,  in ext4_xattr_check_entries()  argument
186 struct ext4_xattr_entry *e = entry; in ext4_xattr_check_entries()
199 while (!IS_LAST_ENTRY(entry)) { in ext4_xattr_check_entries()
200 u32 size = le32_to_cpu(entry->e_value_size); in ext4_xattr_check_entries()
205 if (size != 0 && entry->e_value_inum == 0) { in ext4_xattr_check_entries()
206 u16 offs = le16_to_cpu(entry->e_value_offs); in ext4_xattr_check_entries()
223 entry = EXT4_XATTR_NEXT(entry); in ext4_xattr_check_entries()
284 struct ext4_xattr_entry *entry, *next; in xattr_find_entry() local
291 for (entry = *pentry; !IS_LAST_ENTRY(entry); entry = next) { in xattr_find_entry()
292 next = EXT4_XATTR_NEXT(entry); in xattr_find_entry()
297 cmp = name_index - entry->e_name_index; in xattr_find_entry()
299 cmp = name_len - entry->e_name_len; in xattr_find_entry()
301 cmp = memcmp(name, entry->e_name, name_len); in xattr_find_entry()
305 *pentry = entry; in xattr_find_entry()
439 struct ext4_xattr_entry *entry, void *buffer, in ext4_xattr_inode_verify_hashes() argument
449 if (entry) { in ext4_xattr_inode_verify_hashes()
454 e_hash = ext4_xattr_hash_entry(entry->e_name, entry->e_name_len, in ext4_xattr_inode_verify_hashes()
456 if (e_hash != entry->e_hash) in ext4_xattr_inode_verify_hashes()
466 ext4_xattr_inode_get(struct inode *inode, struct ext4_xattr_entry *entry, in ext4_xattr_inode_get() argument
473 err = ext4_xattr_inode_iget(inode, le32_to_cpu(entry->e_value_inum), in ext4_xattr_inode_get()
474 le32_to_cpu(entry->e_hash), &ea_inode); in ext4_xattr_inode_get()
493 err = ext4_xattr_inode_verify_hashes(ea_inode, entry, buffer, in ext4_xattr_inode_get()
516 struct ext4_xattr_entry *entry; in ext4_xattr_block_get() local
538 entry = BFIRST(bh); in ext4_xattr_block_get()
540 error = xattr_find_entry(inode, &entry, end, name_index, name, 1); in ext4_xattr_block_get()
543 size = le32_to_cpu(entry->e_value_size); in ext4_xattr_block_get()
550 if (entry->e_value_inum) { in ext4_xattr_block_get()
551 error = ext4_xattr_inode_get(inode, entry, buffer, in ext4_xattr_block_get()
556 u16 offset = le16_to_cpu(entry->e_value_offs); in ext4_xattr_block_get()
576 struct ext4_xattr_entry *entry; in ext4_xattr_ibody_get() local
594 entry = IFIRST(header); in ext4_xattr_ibody_get()
595 error = xattr_find_entry(inode, &entry, end, name_index, name, 0); in ext4_xattr_ibody_get()
598 size = le32_to_cpu(entry->e_value_size); in ext4_xattr_ibody_get()
605 if (entry->e_value_inum) { in ext4_xattr_ibody_get()
606 error = ext4_xattr_inode_get(inode, entry, buffer, in ext4_xattr_ibody_get()
611 u16 offset = le16_to_cpu(entry->e_value_offs); in ext4_xattr_ibody_get()
659 ext4_xattr_list_entries(struct dentry *dentry, struct ext4_xattr_entry *entry, in ext4_xattr_list_entries() argument
664 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_list_entries()
666 ext4_xattr_handler(entry->e_name_index); in ext4_xattr_list_entries()
671 size_t size = prefix_len + entry->e_name_len + 1; in ext4_xattr_list_entries()
678 memcpy(buffer, entry->e_name, entry->e_name_len); in ext4_xattr_list_entries()
679 buffer += entry->e_name_len; in ext4_xattr_list_entries()
804 struct ext4_xattr_entry *entry; in ext4_get_inode_usage() local
822 for (entry = IFIRST(header); !IS_LAST_ENTRY(entry); in ext4_get_inode_usage()
823 entry = EXT4_XATTR_NEXT(entry)) in ext4_get_inode_usage()
824 if (entry->e_value_inum) in ext4_get_inode_usage()
840 for (entry = BFIRST(bh); !IS_LAST_ENTRY(entry); in ext4_get_inode_usage()
841 entry = EXT4_XATTR_NEXT(entry)) in ext4_get_inode_usage()
842 if (entry->e_value_inum) in ext4_get_inode_usage()
960 struct ext4_xattr_entry *entry = BFIRST(block_bh); in __ext4_xattr_set_credits() local
962 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) in __ext4_xattr_set_credits()
963 if (entry->e_value_inum) in __ext4_xattr_set_credits()
1100 struct ext4_xattr_entry *entry; in ext4_xattr_inode_inc_ref_all() local
1105 for (entry = first; !IS_LAST_ENTRY(entry); in ext4_xattr_inode_inc_ref_all()
1106 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_inode_inc_ref_all()
1107 if (!entry->e_value_inum) in ext4_xattr_inode_inc_ref_all()
1109 ea_ino = le32_to_cpu(entry->e_value_inum); in ext4_xattr_inode_inc_ref_all()
1111 le32_to_cpu(entry->e_hash), in ext4_xattr_inode_inc_ref_all()
1127 failed_entry = entry; in ext4_xattr_inode_inc_ref_all()
1129 for (entry = first; entry != failed_entry; in ext4_xattr_inode_inc_ref_all()
1130 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_inode_inc_ref_all()
1131 if (!entry->e_value_inum) in ext4_xattr_inode_inc_ref_all()
1133 ea_ino = le32_to_cpu(entry->e_value_inum); in ext4_xattr_inode_inc_ref_all()
1135 le32_to_cpu(entry->e_hash), in ext4_xattr_inode_inc_ref_all()
1160 struct ext4_xattr_entry *entry; in ext4_xattr_inode_dec_ref_all() local
1169 for (entry = first; !IS_LAST_ENTRY(entry); in ext4_xattr_inode_dec_ref_all()
1170 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_inode_dec_ref_all()
1171 if (!entry->e_value_inum) in ext4_xattr_inode_dec_ref_all()
1173 ea_ino = le32_to_cpu(entry->e_value_inum); in ext4_xattr_inode_dec_ref_all()
1175 le32_to_cpu(entry->e_hash), in ext4_xattr_inode_dec_ref_all()
1205 le32_to_cpu(entry->e_value_size)); in ext4_xattr_inode_dec_ref_all()
1213 entry->e_value_inum = 0; in ext4_xattr_inode_dec_ref_all()
1214 entry->e_value_size = 0; in ext4_xattr_inode_dec_ref_all()
2521 static void ext4_xattr_shift_entries(struct ext4_xattr_entry *entry, in ext4_xattr_shift_entries() argument
2525 struct ext4_xattr_entry *last = entry; in ext4_xattr_shift_entries()
2548 struct ext4_xattr_entry *entry) in ext4_xattr_move_to_block() argument
2553 size_t value_size = le32_to_cpu(entry->e_value_size); in ext4_xattr_move_to_block()
2557 .name_index = entry->e_name_index, in ext4_xattr_move_to_block()
2558 .in_inode = !!entry->e_value_inum, in ext4_xattr_move_to_block()
2566 b_entry_name = kmalloc(entry->e_name_len + 1, GFP_NOFS); in ext4_xattr_move_to_block()
2578 if (entry->e_value_inum) { in ext4_xattr_move_to_block()
2579 error = ext4_xattr_inode_get(inode, entry, buffer, value_size); in ext4_xattr_move_to_block()
2583 size_t value_offs = le16_to_cpu(entry->e_value_offs); in ext4_xattr_move_to_block()
2587 memcpy(b_entry_name, entry->e_name, entry->e_name_len); in ext4_xattr_move_to_block()
2588 b_entry_name[entry->e_name_len] = '\0'; in ext4_xattr_move_to_block()
2635 struct ext4_xattr_entry *entry; in ext4_xattr_make_inode_space() local
2643 entry = NULL; in ext4_xattr_make_inode_space()
2663 entry = last; in ext4_xattr_make_inode_space()
2669 if (entry == NULL) { in ext4_xattr_make_inode_space()
2672 entry = small_entry; in ext4_xattr_make_inode_space()
2675 entry_size = EXT4_XATTR_LEN(entry->e_name_len); in ext4_xattr_make_inode_space()
2677 if (!entry->e_value_inum) in ext4_xattr_make_inode_space()
2679 le32_to_cpu(entry->e_value_size)); in ext4_xattr_make_inode_space()
2681 entry); in ext4_xattr_make_inode_space()
2861 struct ext4_xattr_entry *entry; in ext4_xattr_delete_inode() local
2915 for (entry = BFIRST(bh); !IS_LAST_ENTRY(entry); in ext4_xattr_delete_inode()
2916 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_delete_inode()
2917 if (!entry->e_value_inum) in ext4_xattr_delete_inode()
2920 le32_to_cpu(entry->e_value_inum), in ext4_xattr_delete_inode()
2921 le32_to_cpu(entry->e_hash), in ext4_xattr_delete_inode()
2926 le32_to_cpu(entry->e_value_size)); in ext4_xattr_delete_inode()