Lines Matching defs:xattr
9 #include <linux/xattr.h>
60 int flag; /* Indicates what storage xattr points to */
61 int max_size; /* largest xattr that fits in current buffer */
62 dxd_t new_ea; /* dxd to replace ea when modifying xattr */
64 struct jfs_ea_list *xattr; /* buffer containing ea list */
445 ea_buf->xattr = NULL;
452 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea;
464 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea;
487 ea_buf->xattr = kmalloc(ea_buf->max_size, GFP_KERNEL);
488 if (ea_buf->xattr == NULL)
496 if ((rc = ea_read(inode, ea_buf->xattr))) {
497 kfree(ea_buf->xattr);
498 ea_buf->xattr = NULL;
534 ea_buf->xattr = ea_buf->mp->data;
539 if ((rc = ea_read(inode, ea_buf->xattr))) {
554 ea_buf->xattr = ea_buf->mp->data;
559 if (EALIST_SIZE(ea_buf->xattr) != ea_size) {
562 ea_buf->xattr, ea_size, 1);
581 kfree(ea_buf->xattr);
610 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea);
611 kfree(ea_buf->xattr);
616 /* ->xattr must point to original ea's metapage */
617 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea);
678 ealist = (struct jfs_ea_list *) ea_buf.xattr;
817 ealist = (struct jfs_ea_list *) ea_buf.xattr;
876 ealist = (struct jfs_ea_list *) ea_buf.xattr;
998 static int jfs_initxattrs(struct inode *inode, const struct xattr *xattr_array,
1001 const struct xattr *xattr;
1006 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
1008 strlen(xattr->name) + 1, GFP_NOFS);
1014 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name);
1017 xattr->value, xattr->value_len, 0);