Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9d105ec authored by ben.chang's avatar ben.chang Committed by Harshit Agarwal
Browse files

f2fs: Print root inode info

Change-Id: I599eb3b866840c5599d3c392d9b24ac8d0ab8ee5
parent 73150a35
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -568,6 +568,11 @@ int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid,
	nat_blk = (struct f2fs_nat_block *)page_address(page);
	nat_blk = (struct f2fs_nat_block *)page_address(page);
	ne = nat_blk->entries[nid - start_nid];
	ne = nat_blk->entries[nid - start_nid];
	node_info_from_raw_nat(ni, &ne);
	node_info_from_raw_nat(ni, &ne);

	if (nid == 3)
		f2fs_msg(sbi->sb, KERN_INFO, "%s: roo node, nid:3, nat block:%d, block addr:%u, ino:%d\n",
				__func__, index, ni->blk_addr, ni->ino);

	f2fs_put_page(page, 1);
	f2fs_put_page(page, 1);
cache:
cache:
	blkaddr = le32_to_cpu(ne.block_addr);
	blkaddr = le32_to_cpu(ne.block_addr);