ext4: use swap macro in mext_page_double_lock
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 29 Jul 2018 20:11:59 +0000 (16:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 20:11:59 +0000 (16:11 -0400)
commit62bbdd9974678513fee113f09f6b672623521179
treed92acb845a765a1c2b5f2a4121eb235c2add9610
parent21ac738ede0b49004b53b4a44fe3df7bb4a78280
ext4: use swap macro in mext_page_double_lock

Make use of the swap macro and remove unnecessary variable *tmp*.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/move_extent.c