]> Pileus Git - ~andy/linux/blobdiff - fs/ubifs/commit.c
Btrfs: fix misuse of trans block rsv
[~andy/linux] / fs / ubifs / commit.c
index 1bd01ded7123913f28574261811f73a43a6d4e70..87cd0ead8633f17f9596f1b38adc1f4e48055865 100644 (file)
@@ -182,7 +182,7 @@ static int do_commit(struct ubifs_info *c)
        c->mst_node->root_len    = cpu_to_le32(zroot.len);
        c->mst_node->ihead_lnum  = cpu_to_le32(c->ihead_lnum);
        c->mst_node->ihead_offs  = cpu_to_le32(c->ihead_offs);
-       c->mst_node->index_size  = cpu_to_le64(c->old_idx_sz);
+       c->mst_node->index_size  = cpu_to_le64(c->bi.old_idx_sz);
        c->mst_node->lpt_lnum    = cpu_to_le32(c->lpt_lnum);
        c->mst_node->lpt_offs    = cpu_to_le32(c->lpt_offs);
        c->mst_node->nhead_lnum  = cpu_to_le32(c->nhead_lnum);