diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-11-12 14:34:12 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-12 14:34:12 -0500 |
commit | c146afad2c7fea6a366d4945c1bab9b03880f526 (patch) | |
tree | dd217139525a521895125843ca31f61cfbb49dca /fs/btrfs/disk-io.h | |
parent | f3465ca44e2a51fd647c167045768a8ab5a96603 (diff) |
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>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index b8d5948fa279..717e94811e4e 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -38,6 +38,7 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
38 | int close_ctree(struct btrfs_root *root); | 38 | int close_ctree(struct btrfs_root *root); |
39 | int write_ctree_super(struct btrfs_trans_handle *trans, | 39 | int write_ctree_super(struct btrfs_trans_handle *trans, |
40 | struct btrfs_root *root); | 40 | struct btrfs_root *root); |
41 | int btrfs_commit_super(struct btrfs_root *root); | ||
41 | struct extent_buffer *btrfs_find_tree_block(struct btrfs_root *root, | 42 | struct extent_buffer *btrfs_find_tree_block(struct btrfs_root *root, |
42 | u64 bytenr, u32 blocksize); | 43 | u64 bytenr, u32 blocksize); |
43 | struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, | 44 | struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, |
@@ -49,6 +50,7 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root, | |||
49 | struct btrfs_key *location); | 50 | struct btrfs_key *location); |
50 | struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, | 51 | struct btrfs_root *btrfs_read_fs_root_no_name(struct btrfs_fs_info *fs_info, |
51 | struct btrfs_key *location); | 52 | struct btrfs_key *location); |
53 | int btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info); | ||
52 | int btrfs_insert_dev_radix(struct btrfs_root *root, | 54 | int btrfs_insert_dev_radix(struct btrfs_root *root, |
53 | struct block_device *bdev, | 55 | struct block_device *bdev, |
54 | u64 device_id, | 56 | u64 device_id, |