]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2ea874d19071a4a77c59629e5ca5f21627bf770
tree2ea242702f3ee814543c3101ddc86a9b97877cf5
parent4a1e7e1f16c6ef9cafbe86554c062521ba2c306a
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