From: Miao Xie Date: Wed, 15 May 2013 07:48:19 +0000 (+0000) Subject: Btrfs: cleanup the similar code of the fs root read X-Git-Tag: v3.11-rc1~70^2~62 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb517eabba4f109810dba2e5f37b0dcf22103065;p=pandora-kernel.git Btrfs: cleanup the similar code of the fs root read There are several functions whose code is similar, such as btrfs_find_last_root() btrfs_read_fs_root_no_radix() Besides that, some functions are invoked twice, it is unnecessary, for example, we are sure that all roots which is found in btrfs_find_orphan_roots() have their orphan items, so it is unnecessary to check the orphan item again. So cleanup it. Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed