Lines Matching refs:host_ui

86 	struct ubifs_inode *ui, *host_ui = ubifs_inode(host);  in create_xattr()  local
89 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
91 if (host_ui->xattr_cnt >= ubifs_xattr_max_cnt(c)) { in create_xattr()
93 host->i_ino, host_ui->xattr_cnt); in create_xattr()
102 names_len = host_ui->xattr_names + host_ui->xattr_cnt + fname_len(nm) + 1; in create_xattr()
136 mutex_lock(&host_ui->ui_mutex); in create_xattr()
138 host_ui->xattr_cnt += 1; in create_xattr()
139 host_ui->xattr_size += CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
140 host_ui->xattr_size += CALC_XATTR_BYTES(size); in create_xattr()
141 host_ui->xattr_names += fname_len(nm); in create_xattr()
150 host_ui->flags |= UBIFS_CRYPT_FL; in create_xattr()
156 mutex_unlock(&host_ui->ui_mutex); in create_xattr()
164 host_ui->xattr_cnt -= 1; in create_xattr()
165 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
166 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in create_xattr()
167 host_ui->xattr_names -= fname_len(nm); in create_xattr()
168 host_ui->flags &= ~UBIFS_CRYPT_FL; in create_xattr()
169 mutex_unlock(&host_ui->ui_mutex); in create_xattr()
194 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr() local
199 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
217 mutex_lock(&host_ui->ui_mutex); in change_xattr()
219 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
220 host_ui->xattr_size += CALC_XATTR_BYTES(size); in change_xattr()
231 mutex_unlock(&host_ui->ui_mutex); in change_xattr()
237 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in change_xattr()
238 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
239 mutex_unlock(&host_ui->ui_mutex); in change_xattr()
401 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_listxattr() local
409 down_read(&host_ui->xattr_sem); in ubifs_listxattr()
410 len = host_ui->xattr_names + host_ui->xattr_cnt; in ubifs_listxattr()
446 up_read(&host_ui->xattr_sem); in ubifs_listxattr()
457 up_read(&host_ui->xattr_sem); in ubifs_listxattr()
465 struct ubifs_inode *host_ui = ubifs_inode(host); in remove_xattr() local
468 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in remove_xattr()
476 mutex_lock(&host_ui->ui_mutex); in remove_xattr()
478 host_ui->xattr_cnt -= 1; in remove_xattr()
479 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in remove_xattr()
480 host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
481 host_ui->xattr_names -= fname_len(nm); in remove_xattr()
486 mutex_unlock(&host_ui->ui_mutex); in remove_xattr()
492 host_ui->xattr_cnt += 1; in remove_xattr()
493 host_ui->xattr_size += CALC_DENT_SIZE(fname_len(nm)); in remove_xattr()
494 host_ui->xattr_size += CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
495 host_ui->xattr_names += fname_len(nm); in remove_xattr()
496 mutex_unlock(&host_ui->ui_mutex); in remove_xattr()