]> git.baikalelectronics.ru Git - kernel.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)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 May 2010 07:00:00 +0000 (03:00 -0400)
commita237c40e3cf2da17304090fcfa1cf9be634e1b82
tree7b20063513e534c5c13608df572c77c6975ff900
parent4c922dc8282de705eb36b3b1487542ad4dcd9158
ext4: stop issuing discards if not supported by device

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>
fs/ext4/mballoc.c