diff options
author | zhangyi (F) <yi.zhang@huawei.com> | 2019-03-23 11:56:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-27 09:33:47 +0200 |
commit | 3f44dacd111a1148f8084155a6a81a723e7fcfca (patch) | |
tree | 2360d1712e55453cd2f192637ba556f2efab5f41 /lib | |
parent | 20df60004a3a9ce2dbfad4793b4092398afa073e (diff) | |
download | linux-stable-3f44dacd111a1148f8084155a6a81a723e7fcfca.tar.gz linux-stable-3f44dacd111a1148f8084155a6a81a723e7fcfca.tar.bz2 linux-stable-3f44dacd111a1148f8084155a6a81a723e7fcfca.zip |
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