Home
last modified time | relevance | path

Searched refs:ui (Results 1 – 12 of 12) sorted by relevance

/fs/ubifs/
Dfile.c295 struct ubifs_inode *ui = ubifs_inode(inode); in write_begin_slow() local
302 mutex_lock(&ui->ui_mutex); in write_begin_slow()
303 if (ui->dirty) in write_begin_slow()
308 ubifs_release_dirty_inode_budget(c, ui); in write_begin_slow()
329 struct ubifs_inode *ui, int appending) in allocate_budget() argument
341 mutex_lock(&ui->ui_mutex); in allocate_budget()
342 if (ui->dirty) in allocate_budget()
378 mutex_lock(&ui->ui_mutex); in allocate_budget()
379 if (!ui->dirty) in allocate_budget()
430 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_write_begin() local
[all …]
Dxattr.c104 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() local
137 ui = ubifs_inode(inode); in create_xattr()
138 ui->xattr = 1; in create_xattr()
139 ui->flags |= UBIFS_XATTR_FL; in create_xattr()
140 ui->data = kmalloc(size, GFP_NOFS); in create_xattr()
141 if (!ui->data) { in create_xattr()
145 memcpy(ui->data, value, size); in create_xattr()
146 inode->i_size = ui->ui_size = size; in create_xattr()
147 ui->data_len = size; in create_xattr()
196 struct ubifs_inode *ui = ubifs_inode(inode); in change_xattr() local
[all …]
Dsuper.c69 const struct ubifs_inode *ui = ubifs_inode(inode); in validate_inode() local
77 if (ui->compr_type < 0 || ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode()
78 ubifs_err("unknown compression type %d", ui->compr_type); in validate_inode()
82 if (ui->xattr_names + ui->xattr_cnt > XATTR_LIST_MAX) in validate_inode()
85 if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) in validate_inode()
88 if (ui->xattr && (inode->i_mode & S_IFMT) != S_IFREG) in validate_inode()
91 if (!ubifs_compr_present(ui->compr_type)) { in validate_inode()
94 ubifs_compr_name(ui->compr_type)); in validate_inode()
108 struct ubifs_inode *ui; in ubifs_iget() local
117 ui = ubifs_inode(inode); in ubifs_iget()
[all …]
Djournal.c455 struct ubifs_inode *ui = ubifs_inode(inode); in pack_inode() local
459 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode()
469 ino->flags = cpu_to_le32(ui->flags); in pack_inode()
470 ino->size = cpu_to_le64(ui->ui_size); in pack_inode()
472 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode()
473 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
474 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); in pack_inode()
475 ino->xattr_size = cpu_to_le32(ui->xattr_size); in pack_inode()
476 ino->xattr_names = cpu_to_le32(ui->xattr_names); in pack_inode()
484 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
[all …]
Dioctl.c106 struct ubifs_inode *ui = ubifs_inode(inode); in setflags() local
109 .dirtied_ino_d = ui->data_len }; in setflags()
119 mutex_lock(&ui->ui_mutex); in setflags()
120 oldflags = ubifs2ioctl(ui->flags); in setflags()
128 ui->flags = ioctl2ubifs(flags); in setflags()
131 release = ui->dirty; in setflags()
133 mutex_unlock(&ui->ui_mutex); in setflags()
143 mutex_unlock(&ui->ui_mutex); in setflags()
Ddir.c62 const struct ubifs_inode *ui = ubifs_inode(dir); in inherit_flags() local
71 flags = ui->flags & (UBIFS_COMPR_FL | UBIFS_SYNC_FL | UBIFS_DIRSYNC_FL); in inherit_flags()
92 struct ubifs_inode *ui; in ubifs_new_inode() local
95 ui = ubifs_inode(inode); in ubifs_new_inode()
130 inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; in ubifs_new_inode()
145 ui->flags = inherit_flags(dir, mode); in ubifs_new_inode()
148 ui->compr_type = c->default_compr; in ubifs_new_inode()
150 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode()
151 ui->synced_i_size = 0; in ubifs_new_inode()
175 ui->creat_sqnum = ++c->max_sqnum; in ubifs_new_inode()
[all …]
Ddebug.c228 const struct ubifs_inode *ui = ubifs_inode(inode); in dbg_dump_inode() local
246 printk(KERN_DEBUG "\tcreat_sqnum %llu\n", ui->creat_sqnum); in dbg_dump_inode()
247 printk(KERN_DEBUG "\txattr_size %u\n", ui->xattr_size); in dbg_dump_inode()
248 printk(KERN_DEBUG "\txattr_cnt %u\n", ui->xattr_cnt); in dbg_dump_inode()
249 printk(KERN_DEBUG "\txattr_names %u\n", ui->xattr_names); in dbg_dump_inode()
250 printk(KERN_DEBUG "\tdirty %u\n", ui->dirty); in dbg_dump_inode()
251 printk(KERN_DEBUG "\txattr %u\n", ui->xattr); in dbg_dump_inode()
252 printk(KERN_DEBUG "\tbulk_read %u\n", ui->xattr); in dbg_dump_inode()
254 (unsigned long long)ui->synced_i_size); in dbg_dump_inode()
256 (unsigned long long)ui->ui_size); in dbg_dump_inode()
[all …]
Dbudget.c637 struct ubifs_inode *ui) in ubifs_release_dirty_inode_budget() argument
642 req.dd_growth = c->inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
Dubifs.h1488 struct ubifs_inode *ui);
/fs/partitions/
Dsgi.c36 __be32 *ui, cs; in sgi_partition() local
53 ui = ((__be32 *) (label + 1)) - 1; in sgi_partition()
54 for(csum = 0; ui >= ((__be32 *) label);) { in sgi_partition()
55 cs = *ui--; in sgi_partition()
/fs/efs/
Dsuper.c148 __be32 cs, *ui; in module_exit() local
163 ui = ((__be32 *) (vh + 1)) - 1; in module_exit()
164 for(csum = 0; ui >= ((__be32 *) vh);) { in module_exit()
165 cs = *ui--; in module_exit()
/fs/ufs/
Ddir.c262 struct ufs_inode_info *ui = UFS_I(dir); in ufs_find_entry() local
273 start = ui->i_dir_start_lookup; in ufs_find_entry()
306 ui->i_dir_start_lookup = n; in ufs_find_entry()