All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: unexport repair_io_failure()
@ 2021-09-03 12:45 Qu Wenruo
  2021-09-03 13:07 ` Nikolay Borisov
  2021-09-03 13:20 ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2021-09-03 12:45 UTC (permalink / raw)
  To: linux-btrfs

Function repair_io_failure() is no longer used out of extent_io.c since
commit 8b9b6f255485 ("btrfs: scrub: cleanup the remaining nodatasum
fixup code"), which removes the last external caller.

Just unexport it.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 fs/btrfs/extent_io.c | 6 +++---
 fs/btrfs/extent_io.h | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 5ad749e19ff3..9f42a0b2ee4f 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2282,9 +2282,9 @@ int free_io_failure(struct extent_io_tree *failure_tree,
  * currently, there can be no more than two copies of every data bit. thus,
  * exactly one rewrite is required.
  */
-int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
-		      u64 length, u64 logical, struct page *page,
-		      unsigned int pg_offset, int mirror_num)
+static int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
+			     u64 length, u64 logical, struct page *page,
+			     unsigned int pg_offset, int mirror_num)
 {
 	struct bio *bio;
 	struct btrfs_device *dev;
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 9f3e0a45a5e4..ba471f2063a7 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -283,9 +283,6 @@ struct bio *btrfs_io_bio_alloc(unsigned int nr_iovecs);
 struct bio *btrfs_bio_clone(struct bio *bio);
 struct bio *btrfs_bio_clone_partial(struct bio *orig, u64 offset, u64 size);
 
-int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
-		      u64 length, u64 logical, struct page *page,
-		      unsigned int pg_offset, int mirror_num);
 void end_extent_writepage(struct page *page, int err, u64 start, u64 end);
 int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num);
 
-- 
2.33.0


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

* Re: [PATCH] btrfs: unexport repair_io_failure()
  2021-09-03 12:45 [PATCH] btrfs: unexport repair_io_failure() Qu Wenruo
@ 2021-09-03 13:07 ` Nikolay Borisov
  2021-09-03 13:20 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Nikolay Borisov @ 2021-09-03 13:07 UTC (permalink / raw)
  To: Qu Wenruo, linux-btrfs



On 3.09.21 г. 15:45, Qu Wenruo wrote:
> Function repair_io_failure() is no longer used out of extent_io.c since
> commit 8b9b6f255485 ("btrfs: scrub: cleanup the remaining nodatasum
> fixup code"), which removes the last external caller.
> 
> Just unexport it.
> 
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Reviewed-by: Nikolay Borisov <nborisov@suse.com>

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

* Re: [PATCH] btrfs: unexport repair_io_failure()
  2021-09-03 12:45 [PATCH] btrfs: unexport repair_io_failure() Qu Wenruo
  2021-09-03 13:07 ` Nikolay Borisov
@ 2021-09-03 13:20 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2021-09-03 13:20 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: linux-btrfs

On Fri, Sep 03, 2021 at 08:45:14PM +0800, Qu Wenruo wrote:
> Function repair_io_failure() is no longer used out of extent_io.c since
> commit 8b9b6f255485 ("btrfs: scrub: cleanup the remaining nodatasum
> fixup code"), which removes the last external caller.
> 
> Just unexport it.
> 
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Added to misc-next, thanks.

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

end of thread, other threads:[~2021-09-03 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 12:45 [PATCH] btrfs: unexport repair_io_failure() Qu Wenruo
2021-09-03 13:07 ` Nikolay Borisov
2021-09-03 13:20 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.