diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c index cf92b2433f7a..350ec6798ffe 100644 --- a/fs/ntfs3/index.c +++ b/fs/ntfs3/index.c @@ -1865,6 +1865,7 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni, hdr_insert_head(hdr2, de_t, to_copy); /* Remove all entries (sp including) from hdr1. */ + printk("u1: %d, tc: %d, ss: %d\n", used1, to_copy, sp_size); used = used1 - to_copy - sp_size; memmove(de_t, Add2Ptr(sp, sp_size), used - le32_to_cpu(hdr1->de_off)); hdr1->used = cpu_to_le32(used); @@ -1892,6 +1893,8 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni, * We've finished splitting everybody, so we are ready to * insert the promoted entry into the parent. */ + printk("l: %d, e: %d, h1: %p, h1s: %p, u1: %d, %d\n", level, err, hdr1, hdr1_saved, + used1, le32_to_cpu(hdr1->used)); if (!level) { /* Insert in root. */ err = indx_insert_into_root(indx, ni, up_e, NULL, ctx, fnd, 0); @@ -1909,6 +1912,8 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni, * Undo critical operations. */ indx_mark_free(indx, ni, new_vbn >> indx->idx2vbn_bits); + printk("%d, e: %d, h1: %p, h1s: %p, u1: %d, %d\n", level, err, hdr1, hdr1_saved, + used1, le32_to_cpu(hdr1->used)); memcpy(hdr1, hdr1_saved, used1); indx_write(indx, ni, n1, 0); } @@ -1916,6 +1921,7 @@ indx_insert_into_buffer(struct ntfs_index *indx, struct ntfs_inode *ni, out: kfree(up_e); kfree(hdr1_saved); + printk("h1: %p, e: %d", hdr1, err); return err; }