diff options
author | Tejun Heo <tj@kernel.org> | 2009-05-07 15:24:44 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-11 09:50:55 +0200 |
commit | a2dec7b36364a5cc564c4d76cf16d2e7d33f5c05 (patch) | |
tree | 76dfb84ba5fa097a929ab81cf5718c6fcbc9d720 /drivers/block/z2ram.c | |
parent | ide: cleanup rq->data_len usages (diff) | |
download | linux-a2dec7b36364a5cc564c4d76cf16d2e7d33f5c05.tar.xz linux-a2dec7b36364a5cc564c4d76cf16d2e7d33f5c05.zip |
block: hide request sector and data_len
Block low level drivers for some reason have been pretty good at
abusing block layer API. Especially struct request's fields tend to
get violated in all possible ways. Make it clear that low level
drivers MUST NOT access or manipulate rq->sector and rq->data_len
directly by prefixing them with double underscores.
This change is also necessary to break build of out-of-tree codes
which assume the previous block API where internal fields can be
manipulated and rq->data_len carries residual count on completion.
[ Impact: hide internal fields, block API change ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/z2ram.c')
0 files changed, 0 insertions, 0 deletions