Lines Matching full:vi

30 	struct erofs_inode *const vi = EROFS_I(inode);  in erofs_init_inode_xattrs()  local
38 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) { in erofs_init_inode_xattrs()
47 if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_XATTR_BIT, TASK_KILLABLE)) in erofs_init_inode_xattrs()
51 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) in erofs_init_inode_xattrs()
62 if (vi->xattr_isize == sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs()
65 vi->xattr_isize, vi->nid); in erofs_init_inode_xattrs()
68 } else if (vi->xattr_isize < sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs()
69 if (vi->xattr_isize) { in erofs_init_inode_xattrs()
70 erofs_err(sb, "bogus xattr ibody @ nid %llu", vi->nid); in erofs_init_inode_xattrs()
81 it.pos = erofs_iloc(inode) + vi->inode_isize; in erofs_init_inode_xattrs()
91 vi->xattr_name_filter = le32_to_cpu(ih->h_name_filter); in erofs_init_inode_xattrs()
92 vi->xattr_shared_count = ih->h_shared_count; in erofs_init_inode_xattrs()
93 vi->xattr_shared_xattrs = kmalloc_array(vi->xattr_shared_count, in erofs_init_inode_xattrs()
95 if (!vi->xattr_shared_xattrs) { in erofs_init_inode_xattrs()
104 for (i = 0; i < vi->xattr_shared_count; ++i) { in erofs_init_inode_xattrs()
108 kfree(vi->xattr_shared_xattrs); in erofs_init_inode_xattrs()
109 vi->xattr_shared_xattrs = NULL; in erofs_init_inode_xattrs()
113 vi->xattr_shared_xattrs[i] = le32_to_cpu(*(__le32 *) in erofs_init_inode_xattrs()
121 set_bit(EROFS_I_EA_INITED_BIT, &vi->flags); in erofs_init_inode_xattrs()
124 clear_and_wake_up_bit(EROFS_I_BL_XATTR_BIT, &vi->flags); in erofs_init_inode_xattrs()
323 struct erofs_inode *const vi = EROFS_I(inode); in erofs_xattr_iter_inline() local
329 sizeof(u32) * vi->xattr_shared_count; in erofs_xattr_iter_inline()
330 if (xattr_header_sz >= vi->xattr_isize) { in erofs_xattr_iter_inline()
331 DBG_BUGON(xattr_header_sz > vi->xattr_isize); in erofs_xattr_iter_inline()
335 remaining = vi->xattr_isize - xattr_header_sz; in erofs_xattr_iter_inline()
336 it->pos = erofs_iloc(inode) + vi->inode_isize + xattr_header_sz; in erofs_xattr_iter_inline()
369 struct erofs_inode *const vi = EROFS_I(inode); in erofs_xattr_iter_shared() local
375 for (i = 0; i < vi->xattr_shared_count; ++i) { in erofs_xattr_iter_shared()
377 vi->xattr_shared_xattrs[i] * sizeof(__le32); in erofs_xattr_iter_shared()
399 struct erofs_inode *vi = EROFS_I(inode); in erofs_getxattr() local
414 if (vi->xattr_name_filter & (1U << hashbit)) in erofs_getxattr()