From: Zhao Lei Date: Tue, 20 Jan 2015 07:11:34 +0000 (+0800) Subject: Btrfs: add ref_count and free function for btrfs_bio X-Git-Tag: fixes-v4.0-rc1~50^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e9606d2a2dce098c1739fb3cd82a1c34fd73d3a;p=pandora-kernel.git Btrfs: add ref_count and free function for btrfs_bio 1: ref_count is simple than current RBIO_HOLD_BBIO_MAP_BIT flag to keep btrfs_bio's memory in raid56 recovery implement. 2: free function for bbio will make code clean and flexible, plus forced data type checking in compile. Changelog v1->v2: Rename following by David Sterba's suggestion: put_btrfs_bio() -> btrfs_put_bio() get_btrfs_bio() -> btrfs_get_bio() bbio->ref_count -> bbio->refs Signed-off-by: Zhao Lei Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed