]> git.karo-electronics.de Git - mv-sheeva.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)
commita30eec2a8650a77f754e84b2e15f062fe652baa7
tree7b20063513e534c5c13608df572c77c6975ff900
parent6b0310fbf087ad6e9e3b8392adca97cd77184084
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