Btrfs: mount ro and remount support
authorYan Zheng <zheng.yan@oracle.com>
Wed, 12 Nov 2008 19:34:12 +0000 (14:34 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 12 Nov 2008 19:34:12 +0000 (14:34 -0500)
commitc146afad2c7fea6a366d4945c1bab9b03880f526
treedd217139525a521895125843ca31f61cfbb49dca
parentf3465ca44e2a51fd647c167045768a8ab5a96603
Btrfs: mount ro and remount support

This patch adds mount ro and remount support. The main
changes in patch are: adding btrfs_remount and related
helper function; splitting the transaction related code
out of close_ctree into btrfs_commit_super; updating
allocator to properly handle read only block group.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/super.c