summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-05-09 15:31:50 +0800
committerDavid Sterba <dsterba@suse.com>2019-07-01 13:34:59 +0200
commit1200b51f57dca934cfd78969f460d636ec0fb838 (patch)
tree2a5f2ebf300c2e17629ce63b31fd98f39632ccd6
parent480b9b4d847fe18f4a559f5cac718d9b2cbcdcaf (diff)
downloadlinux-1200b51f57dca934cfd78969f460d636ec0fb838.tar.bz2
btrfs: remove the incorrect comment on RO fs when btrfs_run_delalloc_range() fails
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>
-rw-r--r--fs/btrfs/extent_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 441f6c47cebd..dd3f659f223e 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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);
/*