]> git.itanic.dy.fi Git - linux-stable/commit
ext4: stop issuing discards if not supported by device
authorEric Sandeen <sandeen@redhat.com>
Mon, 31 May 2010 02:49:51 +0000 (22:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:21:19 +0000 (10:21 -0700)
commit7a5fb6dc311ddb933e8299cb89fab289bc846c9b
treed58ec69b2f83470c8e8b8271158d12475b0a8301
parente6afda19e101a5c85eb43ec49f00b8336002f2cd
ext4: stop issuing discards if not supported by device

commit a30eec2a8650a77f754e84b2e15f062fe652baa7 upstream (as of v2.6.34-git13)

Turn off issuance of discard requests if the device does
not support it - similar to the action we take for barriers.
This will save a little computation time if a non-discardable
device is mounted with -o discard, and also makes it obvious
that it's not doing what was asked at mount time ...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/mballoc.c