forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: bdi: export BDI attributes in sysfs
Provide a place in sysfs (/sys/class/bdi) for the backing_dev_info object. This allows us to see and set the various BDI specific variables. In particular this properly exposes the read-ahead window for all relevant users and /sys/block/<block>/queue/read_ahead_kb should be deprecated. With patient help from Kay Sievers and Greg KH [[email protected]] - split off NFS and FUSE changes into separate patches - document new sysfs attributes under Documentation/ABI - do bdi_class_init as a core_initcall, otherwise the "default" BDI won't be initialized - remove bdi_init_fmt macro, it's not used very much [[email protected]: fix ia64 warning] Signed-off-by: Peter Zijlstra <[email protected]> Cc: Kay Sievers <[email protected]> Acked-by: Greg KH <[email protected]> Cc: Trond Myklebust <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
8 changed files
with
194 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
What: /sys/class/bdi/<bdi>/ | ||
Date: January 2008 | ||
Contact: Peter Zijlstra <[email protected]> | ||
Description: | ||
|
||
Provide a place in sysfs for the backing_dev_info object. | ||
This allows us to see and set the various BDI specific variables. | ||
|
||
The <bdi> identifier can be either of the following: | ||
|
||
MAJOR:MINOR | ||
|
||
Device number for block devices, or value of st_dev on | ||
non-block filesystems which provide their own BDI, such as NFS | ||
and FUSE. | ||
|
||
default | ||
|
||
The default backing dev, used for non-block device backed | ||
filesystems which do not provide their own BDI. | ||
|
||
Files under /sys/class/bdi/<bdi>/ | ||
--------------------------------- | ||
|
||
read_ahead_kb (read-write) | ||
|
||
Size of the read-ahead window in kilobytes | ||
|
||
reclaimable_kb (read-only) | ||
|
||
Reclaimable (dirty or unstable) memory destined for writeback | ||
to this device | ||
|
||
writeback_kb (read-only) | ||
|
||
Memory currently under writeback to this device | ||
|
||
dirty_kb (read-only) | ||
|
||
Global threshold for reclaimable + writeback memory | ||
|
||
bdi_dirty_kb (read-only) | ||
|
||
Current threshold on this BDI for reclaimable + writeback | ||
memory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters