]> git.karo-electronics.de Git - linux-beck.git/commit
ext4: remove messy logic from ext4_ext_rm_leaf
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 25 Oct 2011 09:35:05 +0000 (05:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Oct 2011 09:35:05 +0000 (05:35 -0400)
commit750c9c47a5f9daa88333ac435a1afe4d4b428230
tree5782bce0abf292317f0f8a176c23d1dca822a985
parent1939dd84b3f52e9c8d1b46dffae2058f16a3ff6a
ext4: remove messy logic from ext4_ext_rm_leaf

- Both callers(truncate and punch_hole) already aligned left end point
  so we no longer need split logic here.
- Remove dead duplicated code.
- Call ext4_ext_dirty only after we have updated eh_entries, otherwise
  we'll loose entries update. Regression caused by d583fb87a3ff0
  266'th testcase in xfstests (http://patchwork.ozlabs.org/patch/120872)

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c