Lines Matching refs:value_len

909 			     struct buffer_head *block_bh, size_t value_len,  in __ext4_xattr_set_credits()  argument
948 blocks = (value_len + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in __ext4_xattr_set_credits()
1467 size_t value_len, u32 hash) in ext4_xattr_inode_cache_find() argument
1484 ea_data = kvmalloc(value_len, GFP_KERNEL); in ext4_xattr_inode_cache_find()
1496 i_size_read(ea_inode) == value_len && in ext4_xattr_inode_cache_find()
1497 !ext4_xattr_inode_read(ea_inode, ea_data, value_len) && in ext4_xattr_inode_cache_find()
1499 value_len) && in ext4_xattr_inode_cache_find()
1500 !memcmp(value, ea_data, value_len)) { in ext4_xattr_inode_cache_find()
1519 const void *value, size_t value_len, in ext4_xattr_inode_lookup_create() argument
1526 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); in ext4_xattr_inode_lookup_create()
1527 ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); in ext4_xattr_inode_lookup_create()
1544 err = ext4_xattr_inode_write(handle, ea_inode, value, value_len); in ext4_xattr_inode_lookup_create()
1582 new_size = (i->value && !in_inode) ? EXT4_XATTR_SIZE(i->value_len) : 0; in ext4_xattr_set_entry()
1592 here->e_value_size = cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
1596 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
1598 memset(val + i->value_len, 0, new_size - i->value_len); in ext4_xattr_set_entry()
1662 WARN_ON_ONCE(!i->value_len); in ext4_xattr_set_entry()
1664 ret = ext4_xattr_inode_alloc_quota(inode, i->value_len); in ext4_xattr_set_entry()
1669 i->value_len, in ext4_xattr_set_entry()
1673 ext4_xattr_inode_free_quota(inode, NULL, i->value_len); in ext4_xattr_set_entry()
1693 i->value_len); in ext4_xattr_set_entry()
1755 } else if (i->value_len) { in ext4_xattr_set_entry()
1762 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
1764 memset(val + i->value_len, 0, in ext4_xattr_set_entry()
1765 new_size - i->value_len); in ext4_xattr_set_entry()
1768 here->e_value_size = cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
1823 i->name_index, i->name, i->value, (long)i->value_len); in ext4_xattr_block_find()
2242 if (le32_to_cpu(s->here->e_value_size) != i->value_len) in ext4_xattr_value_same()
2245 return !memcmp(value, i->value, i->value_len); in ext4_xattr_value_same()
2280 const char *name, const void *value, size_t value_len, in ext4_xattr_set_handle() argument
2287 .value_len = value_len, in ext4_xattr_set_handle()
2318 value_len, in ext4_xattr_set_handle()
2373 (EXT4_XATTR_SIZE(i.value_len) > in ext4_xattr_set_handle()
2400 i.value_len && !i.in_inode) { in ext4_xattr_set_handle()
2431 int ext4_xattr_set_credits(struct inode *inode, size_t value_len, in ext4_xattr_set_credits() argument
2449 value_len, is_create); in ext4_xattr_set_credits()
2468 const void *value, size_t value_len, int flags) in ext4_xattr_set() argument
2480 error = ext4_xattr_set_credits(inode, value_len, flags & XATTR_CREATE, in ext4_xattr_set()
2492 value, value_len, flags); in ext4_xattr_set()
2544 .value_len = 0, in ext4_xattr_move_to_block()
2593 i.value_len = value_size; in ext4_xattr_move_to_block()