summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2004-08-08 20:28:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-08 20:28:06 -0700
commite548ad965bf72fa7e4af78dcf9d07b731338748b (patch)
tree3e7394948f5803fc6dc8ef246aa7a757fc8b4ce6 /include/linux
parent4ab06c9ab4babac5cea0ff25b399c216ac166df1 (diff)
[PATCH] adjust SG reserved size automatically
The block layer SG should have the identical behaviour as SCSI sg when it comes to SG_SET_RESERVED_SIZE - allow caller to specify a large amount, truncate to largest we support, and return that with SG_GET_RESERVED_SIZE. Currently we fail with -EINVAL if the value is too large, I think the SCSI sg behaviour is more sane to use. This one-liner fixes it up, please apply for 2.6.8. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions