summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorzhangyi (F) <yi.zhang@huawei.com>2019-03-23 11:56:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-05 22:29:04 +0200
commit32c5630a89f787f74bef747ee7e580db5cf41260 (patch)
treea39be09de08566c59a2450dabebb8e9c215b292e /lib
parent1d7f481de6d016bfa4c2a57880ad06bc788476ee (diff)
ext4: cleanup bh release code in ext4_ind_remove_space()
commit 5e86bdda41534e17621d5a071b294943cae4376e upstream. Currently, we are releasing the indirect buffer where we are done with it in ext4_ind_remove_space(), so we can see the brelse() and BUFFER_TRACE() everywhere. It seems fragile and hard to read, and we may probably forget to release the buffer some day. This patch cleans up the code by putting of the code which releases the buffers to the end of the function. Signed-off-by: zhangyi (F) <yi.zhang@huawei.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz> Cc: Jari Ruusu <jari.ruusu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions