Skip to content

Commit c354d92

Browse files
Stefan Roeschakpm00
authored andcommitted
mm: document /sys/class/bdi/<bdi>/max_bytes knob
This documents the new /sys/class/bdi/<bdi>/max_bytes knob. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stefan Roesch <[email protected]> Cc: Chris Mason <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c56e049 commit c354d92

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/ABI/testing/sysfs-class-bdi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ Description:
5656
be trusted to play fair.
5757

5858
(read-write)
59+
60+
What: /sys/class/bdi/<bdi>/max_bytes
61+
Date: October 2022
62+
Contact: Stefan Roesch <[email protected]>
63+
Description:
64+
Allows limiting a particular device to use not more than the
65+
given 'max_bytes' of the write-back cache. This is useful in
66+
situations where we want to avoid one device taking all or
67+
most of the write-back cache. For example in case of an NFS
68+
mount that is prone to get stuck, a FUSE mount which cannot be
69+
trusted to play fair, or a nbd device.
70+
71+
(read-write)
72+
5973
What: /sys/class/bdi/<bdi>/strict_limit
6074
Date: October 2022
6175
Contact: Stefan Roesch <[email protected]>

0 commit comments

Comments
 (0)