diff options
-rw-r--r-- | disk-io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -293,6 +293,9 @@ static int commit_tree_roots(struct btrfs_trans_handle *trans, struct list_head *next; struct extent_buffer *eb; + if (fs_info->readonly) + return 0; + eb = fs_info->tree_root->node; extent_buffer_get(eb); btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, 0, &eb); |