btrfs: remove the incorrect comment on RO fs when btrfs_run_delalloc_range() fails
authorQu Wenruo <wqu@suse.com>
Thu, 9 May 2019 07:31:50 +0000 (15:31 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:59 +0000 (13:34 +0200)
At the context of btrfs_run_delalloc_range(), we haven't started/joined
a transaction, thus even something went wrong, we can't and won't abort
transaction, thus no way to make the fs RO.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 441f6c47cebdad8b6c776fd41d556b17fe3b1ccc..dd3f659f223ee233bee95087cdb8e0acaabeb170 100644 (file)
@@ -3310,7 +3310,6 @@ static noinline_for_stack int writepage_delalloc(struct inode *inode,
                }
                ret = btrfs_run_delalloc_range(inode, page, delalloc_start,
                                delalloc_end, &page_started, nr_written, wbc);
-               /* File system has been set read-only */
                if (ret) {
                        SetPageError(page);
                        /*