Bob Peterson b2c87cae0e GFS2: Issue discards in 512b sectors
This patch changes GFS2's discard issuing code so that it calls
function sb_issue_discard rather than blkdev_issue_discard. The
code was calling blkdev_issue_discard and specifying the correct
sector offset and sector size, but blkdev_issue_discard expects
these values to be in terms of 512 byte sectors, even if the native
sector size for the device is different. Calling sb_issue_discard
with the BLOCK size instead ensures the correct block-to-512b-sector
translation. I verified that "minlen" is specified in blocks, so
comparing it to a number of blocks is correct.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2013-04-05 17:55:13 +01:00
..
2011-07-25 14:30:23 -04:00
2010-09-20 11:18:16 +01:00
2012-11-07 13:31:07 +00:00
2011-10-21 12:39:41 +01:00
2013-04-04 09:52:14 +01:00
2013-04-04 09:52:50 +01:00
2011-05-10 13:12:49 +01:00
2013-04-05 17:55:13 +01:00
2012-11-07 13:33:17 +00:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2013-02-13 12:21:40 +00:00
2009-12-16 12:16:49 -05:00