Lines Matching refs:ui
104 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() local
143 ui = ubifs_inode(inode); in create_xattr()
144 ui->xattr = 1; in create_xattr()
145 ui->flags |= UBIFS_XATTR_FL; in create_xattr()
146 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr()
147 if (!ui->data) { in create_xattr()
151 inode->i_size = ui->ui_size = size; in create_xattr()
152 ui->data_len = size; in create_xattr()
213 struct ubifs_inode *ui = ubifs_inode(inode); in change_xattr() local
219 ubifs_assert(ui->data_len == inode->i_size); in change_xattr()
229 mutex_lock(&ui->ui_mutex); in change_xattr()
230 kfree(ui->data); in change_xattr()
231 ui->data = buf; in change_xattr()
232 inode->i_size = ui->ui_size = size; in change_xattr()
233 old_size = ui->data_len; in change_xattr()
234 ui->data_len = size; in change_xattr()
235 mutex_unlock(&ui->ui_mutex); in change_xattr()
350 struct ubifs_inode *ui; in ubifs_xattr_get() local
376 ui = ubifs_inode(inode); in ubifs_xattr_get()
377 ubifs_assert(inode->i_size == ui->data_len); in ubifs_xattr_get()
378 ubifs_assert(ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
380 mutex_lock(&ui->ui_mutex); in ubifs_xattr_get()
383 if (ui->data_len > size) { in ubifs_xattr_get()
385 size, ui->data_len); in ubifs_xattr_get()
390 memcpy(buf, ui->data, ui->data_len); in ubifs_xattr_get()
392 err = ui->data_len; in ubifs_xattr_get()
395 mutex_unlock(&ui->ui_mutex); in ubifs_xattr_get()
476 struct ubifs_inode *ui = ubifs_inode(inode); in remove_xattr() local
480 ubifs_assert(ui->data_len == inode->i_size); in remove_xattr()
490 host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
504 host_ui->xattr_size += CALC_XATTR_BYTES(ui->data_len); in remove_xattr()