btrfs-progs: check: repair inode nbytes in lowmem mode
authorSu Yue <suy.fnst@cn.fujitsu.com>
Mon, 28 Aug 2017 02:41:27 +0000 (10:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:00 +0000 (20:33 +0200)
commit281eec7a9ddf30db3232616a91e40aeb5c7022cd
tree8c078ad1d0021519f3218b4c98a4680f5cd6a923
parente33cad4e349f37c851160f265ff57f32b8b46111
btrfs-progs: check: repair inode nbytes in lowmem mode

After checking one entire inode item, we should get the actual
nbytes of the inode item.

Like original mode, repair_inode_nbytes_lowmem() sets nbytes in
struct btrfs_inode_item to the actual nbytes.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c