Lines Matching defs:size
15 * which limits extended attribute size to UBIFS block size (4KiB). Names of
29 * limitation on the maximum possible size of the list of all extended
73 * @size: size of extended attribute value
82 const struct fscrypt_name *nm, const void *value, int size)
88 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1,
97 * Linux limits the maximum size of the extended attribute names list
128 ui->data = kmemdup(value, size, GFP_NOFS);
133 inode->i_size = ui->ui_size = size;
134 ui->data_len = size;
140 host_ui->xattr_size += CALC_XATTR_BYTES(size);
166 host_ui->xattr_size -= CALC_XATTR_BYTES(size);
184 * @size: size of extended attribute value
191 struct inode *inode, const void *value, int size)
199 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) };
206 buf = kmemdup(value, size, GFP_NOFS);
213 inode->i_size = ui->ui_size = size;
215 ui->data_len = size;
220 host_ui->xattr_size += CALC_XATTR_BYTES(size);
237 host_ui->xattr_size -= CALC_XATTR_BYTES(size);
264 size_t size, int flags, bool check_lock)
276 if (size > UBIFS_MAX_INO_DATA)
301 err = create_xattr(c, host, &nm, value, size);
317 err = change_xattr(c, host, inode, value, size);
327 size_t size)
365 if (ui->data_len > size) {
396 ssize_t ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size)
406 dbg_gen("ino %lu ('%pd'), buffer size %zd", host->i_ino,
407 dentry, size);
413 * We should return the minimum buffer size which will fit a
420 if (len > size) {
453 ubifs_assert(c, written <= size);
692 const char *name, void *buffer, size_t size)
694 dbg_gen("xattr '%s', ino %lu ('%pd'), buf size %zd", name,
695 inode->i_ino, dentry, size);
698 return ubifs_xattr_get(inode, name, buffer, size);
704 size_t size, int flags)
706 dbg_gen("xattr '%s', host ino %lu ('%pd'), size %zd",
707 name, inode->i_ino, dentry, size);
712 return ubifs_xattr_set(inode, name, value, size, flags, true);