[PATCH] Btrfs: turn to readonly if btrfs_start_transaction() fails

2011-06-09 Thread Tsutomu Itoh
When btrfs_start_transaction() fails, we should call btrfs_std_error() properly for filesystem to readonly. (in this patch, forced readonly framework is used) Signed-off-by: Tsutomu Itoh t-i...@jp.fujitsu.com --- fs/btrfs/file.c|1 + fs/btrfs/inode.c | 34

Re: [PATCH] Btrfs: turn to readonly if btrfs_start_transaction() fails

2011-06-09 Thread David Sterba
On Thu, Jun 09, 2011 at 06:38:52PM +0900, Tsutomu Itoh wrote: When btrfs_start_transaction() fails, we should call btrfs_std_error() properly for filesystem to readonly. (in this patch, forced readonly framework is used) Signed-off-by: Tsutomu Itoh t-i...@jp.fujitsu.com ---

Re: [PATCH] Btrfs: turn to readonly if btrfs_start_transaction() fails

2011-06-09 Thread Tsutomu Itoh
(2011/06/10 0:51), David Sterba wrote: On Thu, Jun 09, 2011 at 06:38:52PM +0900, Tsutomu Itoh wrote: When btrfs_start_transaction() fails, we should call btrfs_std_error() properly for filesystem to readonly. (in this patch, forced readonly framework is used) Signed-off-by: Tsutomu Itoh