btrfs: simplify insert_orphan_item
authorDavid Sterba <dsterba@suse.cz>
Fri, 2 Jan 2015 18:12:57 +0000 (19:12 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 14 Jan 2015 18:23:48 +0000 (19:23 +0100)
commit9c4f61f01d269815bb7c37be3ede59c5587747c6
treee0e02273a94ae41c71f58a4262ffd853780bc0a9
parentc234a24de91837db6f00aeebe28e3daddc53c1b7
btrfs: simplify insert_orphan_item

We can search and add the orphan item in one go,
btrfs_insert_orphan_item will find out if the item already exists.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/tree-log.c