summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
authorliubo2011-01-06 12:30:25 +0100
committerChris Mason2011-01-17 21:13:08 +0100
commitacce952b0263825da32cf10489413dec78053347 (patch)
treed934881f247484d7b6917bebc40828600bb6b76c /fs/btrfs/free-space-cache.c
parentbtrfs: Require CAP_SYS_ADMIN for filesystem rebalance (diff)
downloadkernel-qcow2-linux-acce952b0263825da32cf10489413dec78053347.tar.gz
kernel-qcow2-linux-acce952b0263825da32cf10489413dec78053347.tar.xz
kernel-qcow2-linux-acce952b0263825da32cf10489413dec78053347.zip
Btrfs: forced readonly mounts on errors
This patch comes from "Forced readonly mounts on errors" ideas. As we know, this is the first step in being more fault tolerant of disk corruptions instead of just using BUG() statements. The major content: - add a framework for generating errors that should result in filesystems going readonly. - keep FS state in disk super block. - make sure that all of resource will be freed and released at umount time. - make sure that fter FS is forced readonly on error, there will be no more disk change before FS is corrected. For this, we should stop write operation. After this patch is applied, the conversion from BUG() to such a framework can happen incrementally. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions