]> git.hungrycats.org Git - linux/commit
[PATCH] expose backing dev max read-ahead
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:20:03 +0000 (20:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:20:03 +0000 (20:20 -0700)
commita50376bda091b762dc2bcfdd54b386157829f84b
tree22ba47d2c49c5c29214855855eca63f9e48c2534
parent0575b04abcd3032ee80a18bf9e86f96fd5fe01d7
[PATCH] expose backing dev max read-ahead

From: Jens Axboe <axboe@suse.de>

Expose the blockdev's VM readahead in /sys/block/hda/queue/read_ahead_kbytes

This duplicates `blockdev --setra', but we're trying to get away from
ioctls.

It would be nice to have a readahead-setting mechanism which also allows,
say, NFS to be tuned.  But there is no common exposure point for
backing_dev_infos.  One option might be per-superblock:

mount -o remount,read_ahead_kbytes=64

but the generic remount code also has no visibility of the backing_dev, so it
would need a new super_block operation.  One which doesn't accidentally modify
default_backing_dev_info.
drivers/block/ll_rw_blk.c