1 Change list_add_tail to list_add. It gives advantages to ldiskfs
2 in tgt_cb_last_committed. In the beginning of list will be placed
3 thandles with the highest transaction numbers. So at the first
4 iterations we will have the highest transno. It will save from
5 extra call of ptlrpc_commit_replies.
7 Index: linux-4.15.0/fs/ext4/ext4_jbd2.h
8 ===================================================================
9 --- linux-4.15.0.orig/fs/ext4/ext4_jbd2.h
10 +++ linux-4.15.0/fs/ext4/ext4_jbd2.h
11 @@ -172,7 +172,7 @@ static inline void _ext4_journal_callbac
12 struct ext4_journal_cb_entry *jce)
14 /* Add the jce to transaction's private list */
15 - list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list);
16 + list_add(&jce->jce_list, &handle->h_transaction->t_private_list);
19 static inline void ext4_journal_callback_add(handle_t *handle,