]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: move_extent code cleanup
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 26 Sep 2012 16:32:19 +0000 (12:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Sep 2012 16:32:19 +0000 (12:32 -0400)
commita124f41b4549582f1b6f9d6f4cdaaa1e077c7040
treeef4d868a9cf68dff04f8d2fb21fc211b981a0e64
parent96c79bb51e268e0244e8ab710f237f12be5dcc9f
ext4: move_extent code cleanup

- Remove usless checks, because it is too late to check that inode != NULL
  at the moment it was referenced several times.
- Double lock routines looks very ugly and locking ordering relays on
  order of i_ino, but other kernel code rely on order of pointers.
  Let's make them simple and clean.
- check that inodes belongs to the same SB as soon as possible.

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