• D
    ext4: move_extent code cleanup · 03bd8b9b
    Dmitry Monakhov 提交于
    - 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: NDmitry Monakhov <dmonakhov@openvz.org>
    Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
    Cc: stable@vger.kernel.org
    03bd8b9b
move_extent.c 39.1 KB