diff options
author | Jan Kara <[email protected]> | 2019-08-09 14:42:31 +0200 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2019-10-21 09:16:46 -0400 |
commit | 2e710ff03fc4599059eeda68c8de2383e65af825 (patch) | |
tree | 6781e026345c545f7f483346fb3ac509170df567 /scripts/bpf_helpers_doc.py | |
parent | 6d69843e5d3f0c394e1e3004cc2b36efbe402b71 (diff) |
jbd2: Don't call __bforget() unnecessarily
jbd2_journal_forget() jumps to 'not_jbd' branch which calls __bforget()
in cases where the buffer is clean which is pointless. In case of failed
assertion, it can be even argued that it is safer not to touch buffer's
dirty bits. Also logically it makes more sense to just jump to 'drop'
and that will make logic also simpler when we switch bh_state_lock to a
spinlock.
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions