Message ID | ab9bc3e04e0344667b72edff9127e3fece6c4ab6.1741839616.git.wqu@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: remove ASSERT()s for folio_order() and folio_test_large() | expand |
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 0c8c58c4f29b..43c29295f477 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -5280,7 +5280,6 @@ static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len) unsigned cur_len = min_t(unsigned, len, PAGE_SIZE - pg_offset); -again: folio = filemap_lock_folio(mapping, index); if (IS_ERR(folio)) { page_cache_sync_readahead(mapping, @@ -5316,7 +5315,7 @@ static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len) if (folio->mapping != mapping) { folio_unlock(folio); folio_put(folio); - goto again; + continue; } }
The again label is not really necessary and can be replaced by a simple continue. Signed-off-by: Qu Wenruo <wqu@suse.com> --- fs/btrfs/send.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)