]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: fix an ext3 collapse range regression in xfstests
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 May 2015 04:24:10 +0000 (00:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 May 2015 04:24:10 +0000 (00:24 -0400)
commitb9576fc3624eb9fc88bec0d0ae883fd78be86239
treeb5858d2f484d5b1f6f7805e374c394e7e9a72387
parente531d0bceb402e643a4499de40dd3fa39d8d2e43
ext4: fix an ext3 collapse range regression in xfstests

The xfstests test suite assumes that an attempt to collapse range on
the range (0, 1) will return EOPNOTSUPP if the file system does not
support collapse range.  Commit 280227a75b56: "ext4: move check under
lock scope to close a race" broke this, and this caused xfstests to
fail when run when testing file systems that did not have the extents
feature enabled.

Reported-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c