linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs:remove redundant index_rbio_pages in raid56_rmw_stripe
@ 2022-09-29  1:44 Flint.Wang
  2022-09-29  1:49 ` hmsjwzb
  2022-09-29  3:08 ` Qu Wenruo
  0 siblings, 2 replies; 7+ messages in thread
From: Flint.Wang @ 2022-09-29  1:44 UTC (permalink / raw)
  To: wqu
  Cc: hmsjwzb, stringbox8, Chris Mason, Josef Bacik, David Sterba,
	linux-btrfs, linux-kernel

  The index_rbio_pages in raid56_rmw_stripe is redundant.
  It is invoked in finish_rmw anyway.

Signed-off-by: Flint.Wang <hmsjwzb@zoho.com>
---
 fs/btrfs/raid56.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index f6395e8288d69..44266b2c5b86e 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -1546,8 +1546,6 @@ static int raid56_rmw_stripe(struct btrfs_raid_bio *rbio)
 	if (ret)
 		goto cleanup;
 
-	index_rbio_pages(rbio);
-
 	atomic_set(&rbio->error, 0);
 	/* Build a list of bios to read all the missing data sectors. */
 	for (total_sector_nr = 0; total_sector_nr < nr_data_sectors;
-- 
2.37.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-29  7:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29  1:44 [PATCH] btrfs:remove redundant index_rbio_pages in raid56_rmw_stripe Flint.Wang
2022-09-29  1:49 ` hmsjwzb
2022-09-29  3:08 ` Qu Wenruo
2022-09-29  3:13   ` Qu Wenruo
2022-09-29  6:41     ` hmsjwzb
2022-09-29  7:00       ` Qu Wenruo
2022-09-29  5:14   ` hmsjwzb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).