All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: block: fix discard_max_bytes references
@ 2021-09-10 10:51 Stephen Kitt
  2021-09-14 20:50 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Kitt @ 2021-09-10 10:51 UTC (permalink / raw)
  To: Jonathan Corbet, Jens Axboe, linux-doc; +Cc: linux-kernel, Stephen Kitt

When discard_max_hw_bytes was introduced, in commit 0034af036554
("block: make /sys/block/<dev>/queue/discard_max_bytes writeable"),
the discard_max_bytes documentation section was renamed to
discard_max_hw_bytes, but the references it contains to
discard_max_bytes weren't updated.

This patch refers to discard_max_hw_bytes instead. It also reflows the
paragraph so that sentences end lines.

Signed-off-by: Stephen Kitt <steve@sk2.org>
---
 Documentation/block/queue-sysfs.rst | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/block/queue-sysfs.rst b/Documentation/block/queue-sysfs.rst
index 4dc7f0d499a8..5fb4299cdb23 100644
--- a/Documentation/block/queue-sysfs.rst
+++ b/Documentation/block/queue-sysfs.rst
@@ -40,10 +40,11 @@ discard_max_hw_bytes (RO)
 -------------------------
 Devices that support discard functionality may have internal limits on
 the number of bytes that can be trimmed or unmapped in a single operation.
-The discard_max_bytes parameter is set by the device driver to the maximum
-number of bytes that can be discarded in a single operation. Discard
-requests issued to the device must not exceed this limit. A discard_max_bytes
-value of 0 means that the device does not support discard functionality.
+The `discard_max_hw_bytes` parameter is set by the device driver to the
+maximum number of bytes that can be discarded in a single operation.
+Discard requests issued to the device must not exceed this limit.
+A `discard_max_hw_bytes` value of 0 means that the device does not support
+discard functionality.
 
 discard_max_bytes (RW)
 ----------------------

base-commit: 7c60610d476766e128cc4284bb6349732cbd6606
-- 
2.27.0


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

* Re: [PATCH] docs: block: fix discard_max_bytes references
  2021-09-10 10:51 [PATCH] docs: block: fix discard_max_bytes references Stephen Kitt
@ 2021-09-14 20:50 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2021-09-14 20:50 UTC (permalink / raw)
  To: Stephen Kitt, Jens Axboe, linux-doc; +Cc: linux-kernel, Stephen Kitt

Stephen Kitt <steve@sk2.org> writes:

> When discard_max_hw_bytes was introduced, in commit 0034af036554
> ("block: make /sys/block/<dev>/queue/discard_max_bytes writeable"),
> the discard_max_bytes documentation section was renamed to
> discard_max_hw_bytes, but the references it contains to
> discard_max_bytes weren't updated.
>
> This patch refers to discard_max_hw_bytes instead. It also reflows the
> paragraph so that sentences end lines.
>
> Signed-off-by: Stephen Kitt <steve@sk2.org>
> ---
>  Documentation/block/queue-sysfs.rst | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

Applied, thanks.

jon

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 10:51 [PATCH] docs: block: fix discard_max_bytes references Stephen Kitt
2021-09-14 20:50 ` Jonathan Corbet

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.