]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: enable FITRIM ioctl on bigalloc file system
authorLukas Czerner <lczerner@redhat.com>
Thu, 27 Sep 2012 02:21:21 +0000 (22:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Sep 2012 02:21:21 +0000 (22:21 -0400)
commiteb26ef0115b4e2cfcf17984778e9bd4fcc1e7cac
treef34ceab694382ab812423f6774e30ef4889cc400
parent506688ec25f55593a6f00462a2d3f77df7645f9a
ext4: enable FITRIM ioctl on bigalloc file system

With a minor tweaks regarding minimum extent size to discard and
discarded bytes reporting the FITRIM can be enabled on bigalloc file
system and it works without any problem.

This patch fixes minlen handling and discarded bytes reporting to
take into consideration bigalloc enabled file systems and finally
removes the restriction and allow FITRIM to be used on file system with
bigalloc feature enabled.

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