summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2013-11-20 16:08:53 +0800
committerJiri Slaby <jslaby@suse.cz>2014-07-04 10:06:58 +0200
commit0af3f13634228f13b0298551326a51b89d95a7e4 (patch)
treed9fc17dee651029a145832863d97cbfcaaf32244 /Makefile
parentf7009499bc593c23ec4fe9525f4e545ad0c16691 (diff)
xfs: don't perform discard if the given range length is less than block size
commit f9fd0135610084abef6867d984e9951c3099950d upstream. For discard operation, we should return EINVAL if the given range length is less than a block size, otherwise it will go through the file system to discard data blocks as the end range might be evaluated to -1, e.g, /xfs7: 9811378176 bytes were trimmed This issue can be triggered via xfstests/generic/288. Also, it seems to get the request queue pointer via bdev_get_queue() instead of the hard code pointer dereference is not a bad thing. Signed-off-by: Jie Liu <jeff.liu@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions