]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: ignore errors when issuing discards
authorTheodore Ts'o <tytso@mit.edu>
Sat, 30 Apr 2011 17:47:24 +0000 (13:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Apr 2011 17:47:24 +0000 (13:47 -0400)
commit7489acabd7393c9193de94e6717ce2a26ad5c3f8
treeae81b1df1d4d30606acea4e00fbca19307be4f29
parent3669e9baceb2cb50397cd102efbd41ab0442d503
ext4: ignore errors when issuing discards

This is an effective revert of commit a237c40e3: "ext4: stop issuing
discards if not supported by device".  The problem is that there are
some devices that may return errors in response to a discard request
some times but not others.  (One example would be a hybrid dm device
which concatenates an SSD and an HDD device).

By this logic, I also removed the error checking from ext4's FITRIM
code; so that an error from a discard will not stop the FITRIM from
trying to trim the rest of the file system.

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