OSDN Git Service

jbd2: jbd2_get_transaction does not need to return a value
authorLiu Song <fishland@aliyun.com>
Fri, 1 Mar 2019 05:36:57 +0000 (00:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 Mar 2019 05:36:57 +0000 (00:36 -0500)
commit0df6f46995a9fc92a6b9e591428e77527dd9609a
tree02802f1b4279d8e62f7c1d6e16f5f059c659e022
parent6e876c3dd205d30b0db6850e97a03d75457df007
jbd2: jbd2_get_transaction does not need to return a value

In jbd2_get_transaction, a new transaction is initialized,
and set to the j_running_transaction. No need for a return
value, so remove it.

Also, adjust some comments to match the actual operation
of this function.

Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/jbd2/transaction.c