• Home
  • Raw
  • Download

Lines Matching refs:ino

55 static inline void zero_ino_node_unused(struct ubifs_ino_node *ino)  in zero_ino_node_unused()  argument
57 memset(ino->padding1, 0, 4); in zero_ino_node_unused()
58 memset(ino->padding2, 0, 26); in zero_ino_node_unused()
446 static void pack_inode(struct ubifs_info *c, struct ubifs_ino_node *ino, in pack_inode() argument
452 ino->ch.node_type = UBIFS_INO_NODE; in pack_inode()
453 ino_key_init_flash(c, &ino->key, inode->i_ino); in pack_inode()
454 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode()
455 ino->atime_sec = cpu_to_le64(inode->i_atime.tv_sec); in pack_inode()
456 ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in pack_inode()
457 ino->ctime_sec = cpu_to_le64(inode->i_ctime.tv_sec); in pack_inode()
458 ino->ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in pack_inode()
459 ino->mtime_sec = cpu_to_le64(inode->i_mtime.tv_sec); in pack_inode()
460 ino->mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in pack_inode()
461 ino->uid = cpu_to_le32(i_uid_read(inode)); in pack_inode()
462 ino->gid = cpu_to_le32(i_gid_read(inode)); in pack_inode()
463 ino->mode = cpu_to_le32(inode->i_mode); in pack_inode()
464 ino->flags = cpu_to_le32(ui->flags); in pack_inode()
465 ino->size = cpu_to_le64(ui->ui_size); in pack_inode()
466 ino->nlink = cpu_to_le32(inode->i_nlink); in pack_inode()
467 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode()
468 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
469 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); in pack_inode()
470 ino->xattr_size = cpu_to_le32(ui->xattr_size); in pack_inode()
471 ino->xattr_names = cpu_to_le32(ui->xattr_names); in pack_inode()
472 zero_ino_node_unused(ino); in pack_inode()
479 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
483 ubifs_prep_grp_node(c, ino, UBIFS_INO_NODE_SZ + data_len, last); in pack_inode()
548 struct ubifs_ino_node *ino; in ubifs_jnl_update() local
614 ino = (void *)dent + aligned_dlen; in ubifs_jnl_update()
615 pack_inode(c, ino, inode, 0); in ubifs_jnl_update()
616 err = ubifs_node_calc_hash(c, ino, hash_ino); in ubifs_jnl_update()
620 ino = (void *)ino + aligned_ilen; in ubifs_jnl_update()
621 pack_inode(c, ino, dir, 1); in ubifs_jnl_update()
622 err = ubifs_node_calc_hash(c, ino, hash_ino_host); in ubifs_jnl_update()
844 struct ubifs_ino_node *ino, *ino_start; in ubifs_jnl_write_inode() local
869 ino_start = ino = kmalloc(write_len, GFP_NOFS); in ubifs_jnl_write_inode()
870 if (!ino) in ubifs_jnl_write_inode()
918 pack_inode(c, ino, xino, 0); in ubifs_jnl_write_inode()
919 ino = (void *)ino + UBIFS_INO_NODE_SZ; in ubifs_jnl_write_inode()
929 pack_inode(c, ino, inode, 1); in ubifs_jnl_write_inode()
930 err = ubifs_node_calc_hash(c, ino, hash); in ubifs_jnl_write_inode()
1513 struct ubifs_ino_node *ino; in ubifs_jnl_truncate() local
1534 ino = kmalloc(sz, GFP_NOFS); in ubifs_jnl_truncate()
1535 if (!ino) in ubifs_jnl_truncate()
1538 trun = (void *)ino + UBIFS_INO_NODE_SZ; in ubifs_jnl_truncate()
1589 pack_inode(c, ino, inode, 0); in ubifs_jnl_truncate()
1590 err = ubifs_node_calc_hash(c, ino, hash_ino); in ubifs_jnl_truncate()
1602 err = write_head(c, BASEHD, ino, len, &lnum, &offs, sync); in ubifs_jnl_truncate()
1644 kfree(ino); in ubifs_jnl_truncate()
1653 kfree(ino); in ubifs_jnl_truncate()
1676 struct ubifs_ino_node *ino; in ubifs_jnl_delete_xattr() local
1718 ino = (void *)xent + aligned_xlen; in ubifs_jnl_delete_xattr()
1719 pack_inode(c, ino, inode, 0); in ubifs_jnl_delete_xattr()
1720 ino = (void *)ino + UBIFS_INO_NODE_SZ; in ubifs_jnl_delete_xattr()
1721 pack_inode(c, ino, host, 1); in ubifs_jnl_delete_xattr()
1722 err = ubifs_node_calc_hash(c, ino, hash); in ubifs_jnl_delete_xattr()
1797 struct ubifs_ino_node *ino; in ubifs_jnl_change_xattr() local
1814 ino = kzalloc(aligned_len, GFP_NOFS); in ubifs_jnl_change_xattr()
1815 if (!ino) in ubifs_jnl_change_xattr()
1823 pack_inode(c, ino, host, 0); in ubifs_jnl_change_xattr()
1824 err = ubifs_node_calc_hash(c, ino, hash_host); in ubifs_jnl_change_xattr()
1827 pack_inode(c, (void *)ino + aligned_len1, inode, 1); in ubifs_jnl_change_xattr()
1828 err = ubifs_node_calc_hash(c, (void *)ino + aligned_len1, hash); in ubifs_jnl_change_xattr()
1832 err = write_head(c, BASEHD, ino, aligned_len, &lnum, &offs, 0); in ubifs_jnl_change_xattr()
1860 kfree(ino); in ubifs_jnl_change_xattr()
1869 kfree(ino); in ubifs_jnl_change_xattr()