Lines Matching full:ui

577 	struct ubifs_inode *ui = ubifs_inode(inode);  in pack_inode()  local
581 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode()
591 ino->flags = cpu_to_le32(ui->flags); in pack_inode()
592 ino->size = cpu_to_le64(ui->ui_size); in pack_inode()
594 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode()
595 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
596 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); in pack_inode()
597 ino->xattr_size = cpu_to_le32(ui->xattr_size); in pack_inode()
598 ino->xattr_names = cpu_to_le32(ui->xattr_names); in pack_inode()
606 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
607 data_len = ui->data_len; in pack_inode()
616 * @ui: UBIFS inode to mark as clean
618 * This helper function marks UBIFS inode @ui as clean by cleaning the
619 * @ui->dirty flag and releasing its budget. Note, VFS may still treat the
623 static void mark_inode_clean(struct ubifs_info *c, struct ubifs_inode *ui) in mark_inode_clean() argument
625 if (ui->dirty) in mark_inode_clean()
626 ubifs_release_dirty_inode_budget(c, ui); in mark_inode_clean()
627 ui->dirty = 0; in mark_inode_clean()
673 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_jnl_update() local
694 ilen += ui->data_len; in ubifs_jnl_update()
760 ui->del_cmtno = c->cmt_no; in ubifs_jnl_update()
814 spin_lock(&ui->ui_lock); in ubifs_jnl_update()
815 ui->synced_i_size = ui->ui_size; in ubifs_jnl_update()
816 spin_unlock(&ui->ui_lock); in ubifs_jnl_update()
822 mark_inode_clean(c, ui); in ubifs_jnl_update()
861 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_jnl_write_data() local
892 if (!(ui->flags & UBIFS_COMPR_FL)) in ubifs_jnl_write_data()
896 compr_type = ui->compr_type; in ubifs_jnl_write_data()
976 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_jnl_write_inode() local
979 int kill_xattrs = ui->xattr_cnt && last_reference; in ubifs_jnl_write_inode()
989 ilen += ui->data_len; in ubifs_jnl_write_inode()
992 write_len += UBIFS_INO_NODE_SZ * ui->xattr_cnt; in ubifs_jnl_write_inode()
1015 if (ui->xattr_cnt > ubifs_xattr_max_cnt(c)) { in ubifs_jnl_write_inode()
1091 spin_lock(&ui->ui_lock); in ubifs_jnl_write_inode()
1092 ui->synced_i_size = ui->ui_size; in ubifs_jnl_write_inode()
1093 spin_unlock(&ui->ui_lock); in ubifs_jnl_write_inode()
1139 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_jnl_delete_inode() local
1143 if (ui->xattr_cnt || ui->del_cmtno != c->cmt_no) in ubifs_jnl_delete_inode()
1152 if (ui->del_cmtno != c->cmt_no) { in ubifs_jnl_delete_inode()
1695 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_jnl_truncate() local
1703 ubifs_assert(c, !ui->data_len); in ubifs_jnl_truncate()
1705 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); in ubifs_jnl_truncate()
1823 spin_lock(&ui->ui_lock); in ubifs_jnl_truncate()
1824 ui->synced_i_size = ui->ui_size; in ubifs_jnl_truncate()
1825 spin_unlock(&ui->ui_lock); in ubifs_jnl_truncate()
1826 mark_inode_clean(c, ui); in ubifs_jnl_truncate()