Lines Matching refs:value_len

894 			     struct buffer_head *block_bh, size_t value_len,  in __ext4_xattr_set_credits()  argument
933 blocks = (value_len + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in __ext4_xattr_set_credits()
1455 size_t value_len, u32 hash) in ext4_xattr_inode_cache_find() argument
1472 ea_data = kvmalloc(value_len, GFP_KERNEL); in ext4_xattr_inode_cache_find()
1484 i_size_read(ea_inode) == value_len && in ext4_xattr_inode_cache_find()
1485 !ext4_xattr_inode_read(ea_inode, ea_data, value_len) && in ext4_xattr_inode_cache_find()
1487 value_len) && in ext4_xattr_inode_cache_find()
1488 !memcmp(value, ea_data, value_len)) { in ext4_xattr_inode_cache_find()
1507 const void *value, size_t value_len, in ext4_xattr_inode_lookup_create() argument
1514 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); in ext4_xattr_inode_lookup_create()
1515 ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); in ext4_xattr_inode_lookup_create()
1532 err = ext4_xattr_inode_write(handle, ea_inode, value, value_len); in ext4_xattr_inode_lookup_create()
1570 new_size = (i->value && !in_inode) ? EXT4_XATTR_SIZE(i->value_len) : 0; in ext4_xattr_set_entry()
1580 here->e_value_size = cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
1584 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
1586 memset(val + i->value_len, 0, new_size - i->value_len); in ext4_xattr_set_entry()
1650 WARN_ON_ONCE(!i->value_len); in ext4_xattr_set_entry()
1652 ret = ext4_xattr_inode_alloc_quota(inode, i->value_len); in ext4_xattr_set_entry()
1657 i->value_len, in ext4_xattr_set_entry()
1661 ext4_xattr_inode_free_quota(inode, NULL, i->value_len); in ext4_xattr_set_entry()
1681 i->value_len); in ext4_xattr_set_entry()
1743 } else if (i->value_len) { in ext4_xattr_set_entry()
1750 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
1752 memset(val + i->value_len, 0, in ext4_xattr_set_entry()
1753 new_size - i->value_len); in ext4_xattr_set_entry()
1756 here->e_value_size = cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
1811 i->name_index, i->name, i->value, (long)i->value_len); in ext4_xattr_block_find()
2232 if (le32_to_cpu(s->here->e_value_size) != i->value_len) in ext4_xattr_value_same()
2235 return !memcmp(value, i->value, i->value_len); in ext4_xattr_value_same()
2270 const char *name, const void *value, size_t value_len, in ext4_xattr_set_handle() argument
2277 .value_len = value_len, in ext4_xattr_set_handle()
2308 value_len, in ext4_xattr_set_handle()
2363 (EXT4_XATTR_SIZE(i.value_len) > in ext4_xattr_set_handle()
2390 i.value_len && !i.in_inode) { in ext4_xattr_set_handle()
2420 int ext4_xattr_set_credits(struct inode *inode, size_t value_len, in ext4_xattr_set_credits() argument
2438 value_len, is_create); in ext4_xattr_set_credits()
2457 const void *value, size_t value_len, int flags) in ext4_xattr_set() argument
2469 error = ext4_xattr_set_credits(inode, value_len, flags & XATTR_CREATE, in ext4_xattr_set()
2481 value, value_len, flags); in ext4_xattr_set()
2533 .value_len = 0, in ext4_xattr_move_to_block()
2582 i.value_len = value_size; in ext4_xattr_move_to_block()