Skip to content

Commit e7042f6

Browse files
committed
gfs2: Use list_move_tail instead of list_del/list_add_tail
jira LE-3201 Rebuild_History Non-Buildable kernel-rt-4.18.0-553.32.1.rt7.373.el8_10 commit-author Baokun Li <[email protected]> commit 38a618d Using list_move_tail() instead of list_del() + list_add_tail(). Reported-by: Hulk Robot <[email protected]> Signed-off-by: Baokun Li <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]> (cherry picked from commit 38a618d) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 60f2249 commit e7042f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ void gfs2_glock_add_to_lru(struct gfs2_glock *gl)
244244

245245
spin_lock(&lru_lock);
246246

247-
list_del(&gl->gl_lru);
248-
list_add_tail(&gl->gl_lru, &lru_list);
247+
list_move_tail(&gl->gl_lru, &lru_list);
249248

250249
if (!test_bit(GLF_LRU, &gl->gl_flags)) {
251250
set_bit(GLF_LRU, &gl->gl_flags);

0 commit comments

Comments
 (0)