]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove warning message from ext4_issue_discard helper
authorLukas Czerner <lczerner@redhat.com>
Mon, 10 Jan 2011 17:09:59 +0000 (12:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:09:59 +0000 (12:09 -0500)
commit27a86405b47294bfdb34e1cb1ff94cd66061e209
tree61c75c933abc0f8c9e2f8b712f785d39d46919d3
parenta3d05964c2fd66a2702245a3713d0a16074de442
ext4: remove warning message from ext4_issue_discard helper

ext4_issue_discard is supposed to be helper for calling discard, however
in case that underlying device does not support discard it prints out
the warning message and clears the DISCARD t_mount_opt flag. Since it
can be (and is) used by others, it should not do anything and let the
caller to handle the error case.

This commit removes warning message and flag setting from
ext4_issue_discard and use it just in place where it is really needed
(release_blocks_on_commit). FITRIM ioctl should not set any flags nor it
should print out warning messages, so get rid of the warning as well.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
fs/ext4/mballoc.c