/fs/ubifs/ |
D | file.c | 303 struct ubifs_inode *ui = ubifs_inode(inode); in write_begin_slow() local 310 mutex_lock(&ui->ui_mutex); in write_begin_slow() 311 if (ui->dirty) in write_begin_slow() 316 ubifs_release_dirty_inode_budget(c, ui); in write_begin_slow() 337 struct ubifs_inode *ui, int appending) in allocate_budget() argument 349 mutex_lock(&ui->ui_mutex); in allocate_budget() 350 if (ui->dirty) in allocate_budget() 386 mutex_lock(&ui->ui_mutex); in allocate_budget() 387 if (!ui->dirty) in allocate_budget() 438 struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_write_begin() local [all …]
|
D | xattr.c | 104 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() local 143 ui = ubifs_inode(inode); in create_xattr() 144 ui->xattr = 1; in create_xattr() 145 ui->flags |= UBIFS_XATTR_FL; in create_xattr() 146 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr() 147 if (!ui->data) { in create_xattr() 151 inode->i_size = ui->ui_size = size; in create_xattr() 152 ui->data_len = size; in create_xattr() 213 struct ubifs_inode *ui = ubifs_inode(inode); in change_xattr() local 219 ubifs_assert(ui->data_len == inode->i_size); in change_xattr() [all …]
|
D | super.c | 70 const struct ubifs_inode *ui = ubifs_inode(inode); in validate_inode() local 78 if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode() 79 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode() 83 if (ui->xattr_names + ui->xattr_cnt > XATTR_LIST_MAX) in validate_inode() 86 if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) in validate_inode() 89 if (ui->xattr && !S_ISREG(inode->i_mode)) in validate_inode() 92 if (!ubifs_compr_present(ui->compr_type)) { in validate_inode() 94 inode->i_ino, 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 …]
|
D | journal.c | 451 struct ubifs_inode *ui = ubifs_inode(inode); in pack_inode() local 455 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode() 465 ino->flags = cpu_to_le32(ui->flags); in pack_inode() 466 ino->size = cpu_to_le64(ui->ui_size); in pack_inode() 468 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode() 469 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode() 470 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); in pack_inode() 471 ino->xattr_size = cpu_to_le32(ui->xattr_size); in pack_inode() 472 ino->xattr_names = cpu_to_le32(ui->xattr_names); in pack_inode() 480 memcpy(ino->data, ui->data, ui->data_len); in pack_inode() [all …]
|
D | ioctl.c | 113 struct ubifs_inode *ui = ubifs_inode(inode); in setflags() local 116 .dirtied_ino_d = ui->data_len }; in setflags() 126 mutex_lock(&ui->ui_mutex); in setflags() 127 oldflags = ubifs2ioctl(ui->flags); in setflags() 135 ui->flags &= ~ioctl2ubifs(UBIFS_SUPPORTED_IOCTL_FLAGS); in setflags() 136 ui->flags |= ioctl2ubifs(flags); in setflags() 139 release = ui->dirty; in setflags() 141 mutex_unlock(&ui->ui_mutex); in setflags() 151 mutex_unlock(&ui->ui_mutex); in setflags()
|
D | dir.c | 62 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() 93 struct ubifs_inode *ui; in ubifs_new_inode() local 110 ui = ubifs_inode(inode); in ubifs_new_inode() 136 inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; in ubifs_new_inode() 152 ui->flags = inherit_flags(dir, mode); in ubifs_new_inode() 155 ui->compr_type = c->default_compr; in ubifs_new_inode() 157 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode() 158 ui->synced_i_size = 0; in ubifs_new_inode() 182 ui->creat_sqnum = ++c->max_sqnum; in ubifs_new_inode() [all …]
|
D | debug.c | 236 const struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_dump_inode() local 258 pr_err("\tcreat_sqnum %llu\n", ui->creat_sqnum); in ubifs_dump_inode() 259 pr_err("\txattr_size %u\n", ui->xattr_size); in ubifs_dump_inode() 260 pr_err("\txattr_cnt %u\n", ui->xattr_cnt); in ubifs_dump_inode() 261 pr_err("\txattr_names %u\n", ui->xattr_names); in ubifs_dump_inode() 262 pr_err("\tdirty %u\n", ui->dirty); in ubifs_dump_inode() 263 pr_err("\txattr %u\n", ui->xattr); in ubifs_dump_inode() 264 pr_err("\tbulk_read %u\n", ui->bulk_read); in ubifs_dump_inode() 266 (unsigned long long)ui->synced_i_size); in ubifs_dump_inode() 268 (unsigned long long)ui->ui_size); in ubifs_dump_inode() [all …]
|
D | budget.c | 607 struct ubifs_inode *ui) in ubifs_release_dirty_inode_budget() argument 613 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
|
D | recovery.c | 1508 struct ubifs_inode *ui; in ubifs_recover_size() local 1516 ui = ubifs_inode(inode); in ubifs_recover_size() 1522 ui->ui_size = e->d_size; in ubifs_recover_size() 1523 ui->synced_i_size = e->d_size; in ubifs_recover_size()
|
D | ubifs.h | 1550 struct ubifs_inode *ui); 1839 const struct ubifs_inode *ui = ubifs_inode(inode); in ubifs_crypt_is_encrypted() local 1841 return ui->flags & UBIFS_CRYPT_FL; in ubifs_crypt_is_encrypted()
|
/fs/f2fs/ |
D | sysfs.c | 137 unsigned int *ui; in f2fs_sbi_show() local 164 ui = (unsigned int *)(ptr + a->offset); in f2fs_sbi_show() 166 return snprintf(buf, PAGE_SIZE, "%u\n", *ui); in f2fs_sbi_show() 175 unsigned int *ui; in __sbi_store() local 217 ui = (unsigned int *)(ptr + a->offset); in __sbi_store() 235 *ui = t; in __sbi_store() 245 if (t == *ui) in __sbi_store() 247 *ui = t; in __sbi_store() 291 *ui = (unsigned int)t; in __sbi_store()
|
/fs/efs/ |
D | super.c | 162 __be32 cs, *ui; in module_exit() local 177 ui = ((__be32 *) (vh + 1)) - 1; in module_exit() 178 for(csum = 0; ui >= ((__be32 *) vh);) { in module_exit() 179 cs = *ui--; in module_exit()
|
/fs/ufs/ |
D | dir.c | 259 struct ufs_inode_info *ui = UFS_I(dir); in ufs_find_entry() local 270 start = ui->i_dir_start_lookup; in ufs_find_entry() 297 ui->i_dir_start_lookup = n; in ufs_find_entry()
|