ext4: check for negative error code from sb_issue_discard
authorLukas Czerner <lczerner@redhat.com>
Thu, 28 Oct 2010 01:30:03 +0000 (21:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Oct 2010 01:30:03 +0000 (21:30 -0400)
commit582987098207f1182ed5c7d01d5fedf7a5f56286
tree90bd12d0744a8ba7cf63f4042f09102812340334
parentb443e7339aa08574d30b0819b344618459c76214
ext4: check for negative error code from sb_issue_discard

sb_issue_discard() is returning negative error code, so check for
-EOPNOTSUPP.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c