Lines Matching refs:host_ui
73 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() local
76 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
78 if (host_ui->xattr_cnt >= ubifs_xattr_max_cnt(c)) { in create_xattr()
80 host->i_ino, host_ui->xattr_cnt); in create_xattr()
89 names_len = host_ui->xattr_names + host_ui->xattr_cnt + fname_len(nm) + 1; in create_xattr()
123 mutex_lock(&host_ui->ui_mutex); in create_xattr()
125 host_ui->xattr_cnt += 1; in create_xattr()
126 host_ui->xattr_size += CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
127 host_ui->xattr_size += CALC_XATTR_BYTES(size); in create_xattr()
128 host_ui->xattr_names += fname_len(nm); in create_xattr()
137 host_ui->flags |= UBIFS_CRYPT_FL; in create_xattr()
143 mutex_unlock(&host_ui->ui_mutex); in create_xattr()
151 host_ui->xattr_cnt -= 1; in create_xattr()
152 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in create_xattr()
153 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in create_xattr()
154 host_ui->xattr_names -= fname_len(nm); in create_xattr()
155 host_ui->flags &= ~UBIFS_CRYPT_FL; in create_xattr()
156 mutex_unlock(&host_ui->ui_mutex); in create_xattr()
181 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr() local
186 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
204 mutex_lock(&host_ui->ui_mutex); in change_xattr()
206 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
207 host_ui->xattr_size += CALC_XATTR_BYTES(size); in change_xattr()
218 mutex_unlock(&host_ui->ui_mutex); in change_xattr()
224 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in change_xattr()
225 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
226 mutex_unlock(&host_ui->ui_mutex); in change_xattr()
388 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_listxattr() local
396 down_read(&host_ui->xattr_sem); in ubifs_listxattr()
397 len = host_ui->xattr_names + host_ui->xattr_cnt; in ubifs_listxattr()
433 up_read(&host_ui->xattr_sem); in ubifs_listxattr()
444 up_read(&host_ui->xattr_sem); in ubifs_listxattr()
452 struct ubifs_inode *host_ui = ubifs_inode(host); in remove_xattr() local
455 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in remove_xattr()
463 mutex_lock(&host_ui->ui_mutex); in remove_xattr()
465 host_ui->xattr_cnt -= 1; in remove_xattr()
466 host_ui->xattr_size -= CALC_DENT_SIZE(fname_len(nm)); in remove_xattr()
467 host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
468 host_ui->xattr_names -= fname_len(nm); in remove_xattr()
473 mutex_unlock(&host_ui->ui_mutex); in remove_xattr()
479 host_ui->xattr_cnt += 1; in remove_xattr()
480 host_ui->xattr_size += CALC_DENT_SIZE(fname_len(nm)); in remove_xattr()
481 host_ui->xattr_size += CALC_XATTR_BYTES(ui->data_len); in remove_xattr()
482 host_ui->xattr_names += fname_len(nm); in remove_xattr()
483 mutex_unlock(&host_ui->ui_mutex); in remove_xattr()