diff options
| author | Marco Sanvido <[email protected]> | 2012-01-20 23:49:27 +0000 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2012-02-07 06:48:20 +0000 |
| commit | 7347b5ff7090b2b399b7921a266255cd55bbd78f (patch) | |
| tree | 3952df49566e07f4cbdbc7aef6b28abadf008dca /fs/jbd2/commit.c | |
| parent | target: Fix target_submit_cmd() exception handling (diff) | |
| download | kernel-7347b5ff7090b2b399b7921a266255cd55bbd78f.tar.gz kernel-7347b5ff7090b2b399b7921a266255cd55bbd78f.zip | |
target: Fix iblock se_dev_attrib.unmap_granularity
The block layer keeps q->limits.discard_granularity in bytes, but iblock
(and the SCSI Block Limits VPD page) keep unmap_granularity in blocks.
Report the correct value when exporting block devices by dividing to
convert bytes to blocks.
Signed-off-by: Roland Dreier <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
