Home
last modified time | relevance | path

Searched refs:xattr_size (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/fs/jfs/
Dxattr.c662 int xattr_size; in __jfs_setxattr() local
671 xattr_size = ea_get(inode, &ea_buf, 0); in __jfs_setxattr()
672 if (xattr_size < 0) { in __jfs_setxattr()
673 rc = xattr_size; in __jfs_setxattr()
681 if (xattr_size) { in __jfs_setxattr()
718 xattr_size = ea_get(inode, &ea_buf, new_size); in __jfs_setxattr()
719 if (xattr_size < 0) { in __jfs_setxattr()
720 rc = xattr_size; in __jfs_setxattr()
732 xattr_size -= old_ea_size; in __jfs_setxattr()
737 if (xattr_size == 0) in __jfs_setxattr()
[all …]
/linux-6.1.9/security/integrity/evm/
Devm_crypto.c219 size_t xattr_size = 0; in evm_calc_hmac_or_hash() local
269 &xattr_value, xattr_size, GFP_NOFS); in evm_calc_hmac_or_hash()
284 xattr_size = size; in evm_calc_hmac_or_hash()
285 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); in evm_calc_hmac_or_hash()
289 if (xattr_size < 64) in evm_calc_hmac_or_hash()
290 pr_debug("%s: (%zu) [%*phN]", xattr->name, xattr_size, in evm_calc_hmac_or_hash()
291 (int)xattr_size, xattr_value); in evm_calc_hmac_or_hash()
294 xattr_size); in evm_calc_hmac_or_hash()
/linux-6.1.9/fs/ubifs/
Dxattr.c139 host_ui->xattr_size += CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
140 host_ui->xattr_size += CALC_XATTR_BYTES(size); in create_xattr()
165 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
166 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in create_xattr()
219 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
220 host_ui->xattr_size += CALC_XATTR_BYTES(size); in change_xattr()
237 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in change_xattr()
238 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
361 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
479 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in remove_xattr()
[all …]
Dubifs-media.h533 __le32 xattr_size; member
Ddebug.c249 pr_err("\txattr_size %u\n", ui->xattr_size); in ubifs_dump_inode()
464 pr_err("\txattr_size %u\n", le32_to_cpu(ino->xattr_size)); in ubifs_dump_node()
1863 fscki->xattr_sz = le32_to_cpu(ino->xattr_size); in add_inode()
1871 fscki->xattr_sz = ui->xattr_size; in add_inode()
Djournal.c470 ino->xattr_size = cpu_to_le32(ui->xattr_size); in pack_inode()
Dsuper.c159 ui->xattr_size = le32_to_cpu(ino->xattr_size); in ubifs_iget()
Dubifs.h414 unsigned int xattr_size; member
Ddir.c1674 size = ui->xattr_size; in ubifs_getattr()
/linux-6.1.9/fs/nfs/
Dnfs42xattr.c86 size_t xattr_size; member
237 entry->xattr_size = len; in nfs4_xattr_alloc_entry()
624 entry->xattr_name, (unsigned long)entry->xattr_size); in nfs4_xattr_cache_get()
627 ret = entry->xattr_size; in nfs4_xattr_cache_get()
628 } else if (buflen < entry->xattr_size) in nfs4_xattr_cache_get()
631 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_get()
632 ret = entry->xattr_size; in nfs4_xattr_cache_get()
665 ret = entry->xattr_size; in nfs4_xattr_cache_list()
666 } else if (entry->xattr_size > buflen) in nfs4_xattr_cache_list()
669 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_list()
[all …]
/linux-6.1.9/fs/reiserfs/
Dxattr.h50 #define xattr_size(size) ((size) + sizeof(struct reiserfs_xattr_header)) macro
55 ret = _ROUND_UP(xattr_size(size), inode->i_sb->s_blocksize); in reiserfs_xattr_nblocks()
/linux-6.1.9/fs/squashfs/
Dsquashfs_fs_i.h17 unsigned int xattr_size; member
Dinode.c397 &squashfs_i(inode)->xattr_size, in squashfs_read_inode()
401 inode->i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9) in squashfs_read_inode()
/linux-6.1.9/fs/f2fs/
Dnamei.c188 int xattr_size = 0; in f2fs_new_inode() local
253 xattr_size = F2FS_OPTION(sbi).inline_xattr_size; in f2fs_new_inode()
257 xattr_size = DEFAULT_INLINE_XATTR_ADDRS; in f2fs_new_inode()
259 F2FS_I(inode)->i_inline_xattr_size = xattr_size; in f2fs_new_inode()
/linux-6.1.9/fs/
Dxattr.c363 const char *name, char **xattr_value, size_t xattr_size, in vfs_getxattr_alloc() argument
384 if (!value || (error > xattr_size)) { in vfs_getxattr_alloc()