]> git.karo-electronics.de Git - linux-beck.git/commit
btrfs: sanitizing ->fs_info, part 4
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Nov 2011 05:46:16 +0000 (00:46 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jan 2012 00:34:38 +0000 (19:34 -0500)
commit6f07e42ee6fcc252a210781d7262f4051e9fd8f6
tree70686d28678c69586570032c47ecdc4636c7a4f3
parent38a77db49ad8f78369dcdfb693b8e5a818a60104
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 <viro@zeniv.linux.org.uk>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/super.c