Btrfs: forced readonly when btrfs_drop_snapshot() fails
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Tue, 9 Aug 2011 07:11:13 +0000 (07:11 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 17 Aug 2011 01:09:15 +0000 (21:09 -0400)
commitcb1b69f4508a1e8c1a7907379eafceb7ae0325ef
tree2ea242702f3ee814543c3101ddc86a9b97877cf5
parentcdcb725c05fe0cb71777c66ddc2445fedbbb3c59
Btrfs: forced readonly when btrfs_drop_snapshot() fails

The filesystem turns readonly instead of returning the error to the
caller when detected error in btrfs_drop_snapshot().
and, because the caller doesn't check the error, the function type is
changed to 'void'.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c