btrfs-progs: check: get the highest inode for lost+found
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 20 Dec 2016 12:08:54 +0000 (06:08 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 25 Jan 2017 08:47:19 +0000 (09:47 +0100)
commite325c74bb8af9efa150cb16429a94f291209604f
treed8546595c992ec3cfd39418d11ca670ecc7d903c
parent6ab6f69be3e9eef90d0da12e1362b0dd7c1315eb
btrfs-progs: check: get the highest inode for lost+found

root->highest_inode is not accurate at the time of creating a lost+found
and it fails because the highest_inode+1 is already present. This could be
because of fixes after highest_inode is set. Instead, search
for the highest inode in the tree and use it for lost+found.

This makes root->highest_inode unnecessary and hence deleted.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
ctree.h
disk-io.c