]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: stop issuing discards if not supported by device
authorEric Sandeen <sandeen@redhat.com>
Sun, 16 May 2010 07:00:00 +0000 (03:00 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:34 +0000 (18:07 -0500)
commit603ac51d4b7d2ba57a7ba266a37ab64d6a00fb93
tree12d70205559a583cf7380cf260dec80b6b2c8a03
parent924a7b8465438c478074ce82321f3d44ef2ba67b
ext4: stop issuing discards if not supported by device

commit a30eec2a8650a77f754e84b2e15f062fe652baa7 upstream.

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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext4/mballoc.c