[PATCH] btrfs-progs: remove meaningless field write of scrub status file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since ret must be 0 when goes to scrub status file's write,
so scrub_write_buf(fd, buf, ret) writes nothing.
And when I check the process for read scrub status file,
there is no process for this field.
So, remove it.

Signed-off-by: Gu Jinxiang <gujx@xxxxxxxxxxxxxx>
---
 cmds-scrub.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cmds-scrub.c b/cmds-scrub.c
index 8cf1e5df..efd7db94 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -753,7 +753,6 @@ static int scrub_write_file(int fd, const char *fsid,
 		    scrub_write_buf(fd, ":", 1) ||
 		    scrub_writev(fd, buf, sizeof(buf), "%lld",
 					use->scrub_args.devid) ||
-		    scrub_write_buf(fd, buf, ret) ||
 		    _SCRUB_KVWRITE(fd, buf, data_extents_scrubbed, use) ||
 		    _SCRUB_KVWRITE(fd, buf, tree_extents_scrubbed, use) ||
 		    _SCRUB_KVWRITE(fd, buf, data_bytes_scrubbed, use) ||
-- 
2.14.3



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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux