diff options
author | Bob Peterson <rpeterso@redhat.com> | 2013-03-22 10:07:24 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2013-04-05 17:55:13 +0100 |
commit | b2c87cae0edb1a99f7dd2751d5beb2cb97926514 (patch) | |
tree | 1b10a4c350a6a64ba581ccef10e7cb48441bf7c7 /fs/debugfs | |
parent | c2952d202f710d326ac36a8ea6bd216b20615ec8 (diff) | |
download | linux-3.10-b2c87cae0edb1a99f7dd2751d5beb2cb97926514.tar.gz linux-3.10-b2c87cae0edb1a99f7dd2751d5beb2cb97926514.tar.bz2 linux-3.10-b2c87cae0edb1a99f7dd2751d5beb2cb97926514.zip |
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>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions