Btrfs: check for a null fs root when writing to the backup root log
authorChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 23:50:56 +0000 (18:50 -0500)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 23:50:56 +0000 (18:50 -0500)
commit7c7e82a77fe3d89ae50824aa7c897454675eb4c4
treede7ac71aa9fa00d3ce2b1849c97733f37799900c
parentd43317dcd074818d4bd12ddd4184a29aff98907b
Btrfs: check for a null fs root when writing to the backup root log

During log replay, can commit the transaction before the fs_root
pointers are setup, so we have to make sure they are not null before
trying to use them.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c