]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7d534c1aed00e4c5b68f4e81a4bdec74e7cffb5
treede7ac71aa9fa00d3ce2b1849c97733f37799900c
parente99e7972a6e0afa28f0829485c35f851655a57fa
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