From: Al Viro Date: Thu, 17 Nov 2011 05:46:16 +0000 (-0500) Subject: btrfs: sanitizing ->fs_info, part 4 X-Git-Tag: v3.3-rc1~25^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f07e42ee6fcc252a210781d7262f4051e9fd8f6;p=pandora-kernel.git btrfs: sanitizing ->fs_info, part 4 A new helper: btrfs_alloc_root(fs_info); allocates btrfs_root and sets ->fs_info. All places allocating the suckers converted to it. At that point we *never* reassign ->fs_info of btrfs_root; it's set before anyone sees the address of newly allocated struct btrfs_root and never assigned anywhere else. Signed-off-by: Al Viro --- Reading git-diff-tree failed