Lines Matching defs:value
36 * | value 1 | ^
37 * | value 3 | | growing upwards
38 * | value 2 | |
82 static __le32 ext4_xattr_hash_entry(char *name, size_t name_len, __le32 *value,
84 static __le32 ext4_xattr_hash_entry_signed(char *name, size_t name_len, __le32 *value,
261 void *value;
264 * The value cannot overlap the names, and the value
273 value = value_start + offs;
274 if (value < (void *)e + sizeof(u32) ||
275 size > end - value ||
276 EXT4_XATTR_SIZE(size) > end - value) {
380 * Read the EA value from an inode.
525 * Read xattr value from the EA inode.
1004 /* Dereference ea_inode holding old xattr value.
1381 * Write the value of the EA in an inode.
1460 * Create an inode to store the value of a large EA.
1517 ext4_xattr_inode_cache_find(struct inode *inode, const void *value,
1551 !memcmp(value, ea_data, value_len)) {
1566 * Add value of the EA in an inode.
1569 const void *value, size_t value_len,
1576 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len);
1577 ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash);
1589 /* Create an inode for the EA value */
1594 err = ext4_xattr_inode_write(handle, ea_inode, value, value_len);
1633 new_size = (i->value && !in_inode) ? EXT4_XATTR_SIZE(i->value_len) : 0;
1644 if (i->value == EXT4_ZERO_XATTR_VALUE) {
1647 memcpy(val, i->value, i->value_len);
1671 if (i->value) {
1684 * If storing the value in an external inode is an option,
1686 * attribute block so that a long value does not occupy the
1712 if (i->value && in_inode) {
1719 ret = ext4_xattr_inode_lookup_create(handle, inode, i->value,
1756 /* Remove the old value. */
1765 /* Adjust all value offsets. */
1777 if (!i->value) {
1810 /* This is an update, reset value info. */
1816 if (i->value) {
1817 /* Insert new value. */
1824 if (i->value == EXT4_ZERO_XATTR_VALUE) {
1827 memcpy(val, i->value, i->value_len);
1837 if (i->value) {
1845 * Feed crc32c hash instead of the raw value for entry
1847 * potentially long value buffer again.
1855 __le32 *value = s->base + le16_to_cpu(
1859 here->e_name_len, value,
1887 ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld",
1888 i->name_index, i->name, i->value, (long)i->value_len);
2001 * like it has an empty value.
2045 if (i->value && s->here->e_value_inum) {
2304 void *value;
2306 /* When e_value_inum is set the value is stored externally. */
2311 value = ((void *)s->base) + le16_to_cpu(s->here->e_value_offs);
2312 return !memcmp(value, i->value, i->value_len);
2347 const char *name, const void *value, size_t value_len,
2353 .value = value,
2418 if (!value)
2426 if (!value) {
2433 /* Xattr value did not change? Save us some work and bail out */
2446 i.value = NULL;
2458 i.value = NULL;
2478 if (!value)
2535 const void *value, size_t value_len, int flags)
2559 value, value_len, flags);
2586 /* Adjust the value offsets of the entries */
2610 .value = NULL,
2632 /* Save the entry name and the entry value */
2660 i.value = buffer;
2672 i.value = NULL;
2700 unsigned int total_size; /* EA entry size + value size */
3001 * Update i_file_acl value in the same transaction that releases
3152 static __le32 ext4_xattr_hash_entry(char *name, size_t name_len, __le32 *value,
3165 le32_to_cpu(*value++);
3175 static __le32 ext4_xattr_hash_entry_signed(char *name, size_t name_len, __le32 *value, size_t value_count)
3187 le32_to_cpu(*value++);
3200 * Re-compute the extended attribute hash value after an entry has changed.
3210 /* Block is not shared if an entry's hash value == 0 */