Lines Matching full:ui
86 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() local
125 ui = ubifs_inode(inode); in create_xattr()
126 ui->xattr = 1; in create_xattr()
127 ui->flags |= UBIFS_XATTR_FL; in create_xattr()
128 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr()
129 if (!ui->data) { in create_xattr()
133 inode->i_size = ui->ui_size = size; in create_xattr()
134 ui->data_len = size; in create_xattr()
195 struct ubifs_inode *ui = ubifs_inode(inode); in change_xattr() local
201 ubifs_assert(c, ui->data_len == inode->i_size); in change_xattr()
211 kfree(ui->data); in change_xattr()
212 ui->data = buf; in change_xattr()
213 inode->i_size = ui->ui_size = size; in change_xattr()
214 old_size = ui->data_len; in change_xattr()
215 ui->data_len = size; in change_xattr()
332 struct ubifs_inode *ui; in ubifs_xattr_get() local
359 ui = ubifs_inode(inode); in ubifs_xattr_get()
360 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get()
361 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
365 if (ui->data_len > size) { in ubifs_xattr_get()
370 memcpy(buf, ui->data, ui->data_len); in ubifs_xattr_get()
372 err = ui->data_len; in ubifs_xattr_get()
466 struct ubifs_inode *ui = ubifs_inode(inode); in remove_xattr() local
470 ubifs_assert(c, ui->data_len == inode->i_size); in remove_xattr()
480 host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
494 host_ui->xattr_size += CALC_XATTR_BYTES(ui->data_len); in remove_xattr()