diff mbox

btrfs-progs: Remove duplicate value-get for data_extents_scrubbed

Message ID 1522663877-1547-1-git-send-email-gujx@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gu Jinxiang April 2, 2018, 10:11 a.m. UTC
Get data_extents_scrubbed value for twice, since there is only
one data_extents_scrubbed in struct btrfs_scrub_progress, remove
the duplicate one.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
---
 cmds-scrub.c | 2 --
 1 file changed, 2 deletions(-)

Comments

David Sterba April 9, 2018, 2:21 p.m. UTC | #1
On Mon, Apr 02, 2018 at 06:11:17PM +0800, Gu Jinxiang wrote:
> Get data_extents_scrubbed value for twice, since there is only
> one data_extents_scrubbed in struct btrfs_scrub_progress, remove
> the duplicate one.
> 
> Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-scrub.c b/cmds-scrub.c
index dabe7d9a..6b909f20 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -589,8 +589,6 @@  again:
 			/* fall through */
 		case 5: /* read key/value pair */
 			ret = 0;
-			_SCRUB_KVREAD(ret, &i, data_extents_scrubbed, avail, l,
-					&p[curr]->p);
 			_SCRUB_KVREAD(ret, &i, data_extents_scrubbed, avail, l,
 					&p[curr]->p);
 			_SCRUB_KVREAD(ret, &i, tree_extents_scrubbed, avail, l,