Skip to content

Commit 5f02a30

Browse files
Yang Litytso
authored andcommitted
jbd2: remove unused function '__cp_buffer_busy'
The code calling function '__cp_buffer_busy' has been removed, so the function should also be removed. silence the warning: fs/jbd2/checkpoint.c:48:20: warning: unused function '__cp_buffer_busy' Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5518 Signed-off-by: Yang Li <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 590a809 commit 5f02a30

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

fs/jbd2/checkpoint.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ static inline void __buffer_unlink(struct journal_head *jh)
4040
}
4141
}
4242

43-
/*
44-
* Check a checkpoint buffer could be release or not.
45-
*
46-
* Requires j_list_lock
47-
*/
48-
static inline bool __cp_buffer_busy(struct journal_head *jh)
49-
{
50-
struct buffer_head *bh = jh2bh(jh);
51-
52-
return (jh->b_transaction || buffer_locked(bh) || buffer_dirty(bh));
53-
}
54-
5543
/*
5644
* __jbd2_log_wait_for_space: wait until there is space in the journal.
5745
*

0 commit comments

Comments
 (0)