Lines Matching refs:ui

50 	const struct ubifs_inode *ui = ubifs_inode(dir);  in inherit_flags()  local
59 flags = ui->flags & (UBIFS_COMPR_FL | UBIFS_SYNC_FL | UBIFS_DIRSYNC_FL); in inherit_flags()
81 struct ubifs_inode *ui; in ubifs_new_inode() local
85 ui = ubifs_inode(inode); in ubifs_new_inode()
117 inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; in ubifs_new_inode()
132 ui->flags = inherit_flags(dir, mode); in ubifs_new_inode()
135 ui->compr_type = c->default_compr; in ubifs_new_inode()
137 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode()
138 ui->synced_i_size = 0; in ubifs_new_inode()
161 ui->creat_sqnum = ++c->max_sqnum; in ubifs_new_inode()
359 struct ubifs_inode *ui, *dir_ui = ubifs_inode(dir); in do_tmpfile() local
393 ui = ubifs_inode(inode); in do_tmpfile()
404 mutex_lock(&ui->ui_mutex); in do_tmpfile()
414 ubifs_assert(c, ui->dirty); in do_tmpfile()
417 mutex_unlock(&ui->ui_mutex); in do_tmpfile()
694 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_link() local
698 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
1021 struct ubifs_inode *ui; in ubifs_mknod() local
1069 ui = ubifs_inode(inode); in ubifs_mknod()
1070 ui->data = dev; in ubifs_mknod()
1071 ui->data_len = devlen; in ubifs_mknod()
1110 struct ubifs_inode *ui; in ubifs_symlink() local
1148 ui = ubifs_inode(inode); in ubifs_symlink()
1149 ui->data = kmalloc(disk_link.len, GFP_NOFS); in ubifs_symlink()
1150 if (!ui->data) { in ubifs_symlink()
1156 disk_link.name = ui->data; /* encrypt directly into ui->data */ in ubifs_symlink()
1161 memcpy(ui->data, disk_link.name, disk_link.len); in ubifs_symlink()
1162 inode->i_link = ui->data; in ubifs_symlink()
1170 ui->data_len = disk_link.len - 1; in ubifs_symlink()
1583 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_getattr() local
1585 mutex_lock(&ui->ui_mutex); in ubifs_getattr()
1587 if (ui->flags & UBIFS_APPEND_FL) in ubifs_getattr()
1589 if (ui->flags & UBIFS_COMPR_FL) in ubifs_getattr()
1591 if (ui->flags & UBIFS_CRYPT_FL) in ubifs_getattr()
1593 if (ui->flags & UBIFS_IMMUTABLE_FL) in ubifs_getattr()
1603 stat->size = ui->ui_size; in ubifs_getattr()
1618 size = ui->xattr_size; in ubifs_getattr()
1628 mutex_unlock(&ui->ui_mutex); in ubifs_getattr()