diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2023-07-14 04:55:28 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-08-04 22:32:29 +0200 |
commit | 5f02a30eac5cc1c081cbdb42d19fd0ded00b0618 (patch) | |
tree | 1e2a7018e69c243adc8bc4366b2245c40a66b479 /fs/jbd2/checkpoint.c | |
parent | jbd2: check 'jh->b_transaction' before removing it from checkpoint (diff) | |
download | linux-5f02a30eac5cc1c081cbdb42d19fd0ded00b0618.tar.xz linux-5f02a30eac5cc1c081cbdb42d19fd0ded00b0618.zip |
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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5518
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230714025528.564988-4-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/checkpoint.c')
-rw-r--r-- | fs/jbd2/checkpoint.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index f033ac807013..118699fff2f9 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c @@ -41,18 +41,6 @@ static inline void __buffer_unlink(struct journal_head *jh) } /* - * Check a checkpoint buffer could be release or not. - * - * Requires j_list_lock - */ -static inline bool __cp_buffer_busy(struct journal_head *jh) -{ - struct buffer_head *bh = jh2bh(jh); - - return (jh->b_transaction || buffer_locked(bh) || buffer_dirty(bh)); -} - -/* * __jbd2_log_wait_for_space: wait until there is space in the journal. * * Called under j-state_lock *only*. It will be unlocked if we have to wait |