aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2019-08-09 14:42:27 +0200
committerTheodore Ts'o <[email protected]>2019-10-21 09:16:45 -0400
commitd84560f74d852ea0cf663edeaee3a470917c2f36 (patch)
tree37e57f2b87c365bbe8515a33b122536653065c40 /scripts/bpf_helpers_doc.py
parent4f5cafb5cb8471e54afdc9054d973535614f7675 (diff)
jbd2: Simplify journal_unmap_buffer()
journal_unmap_buffer() checks first whether the buffer head is a journal. If so it takes locks and then invokes jbd2_journal_grab_journal_head() followed by another check whether this is journal head buffer. The double checking is pointless. Replace the initial check with jbd2_journal_grab_journal_head() which alredy checks whether the buffer head is actually a journal. Allows also early access to the journal head pointer for the upcoming conversion of state lock to a regular spinlock. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Jan Kara <[email protected]> Cc: [email protected] Cc: "Theodore Ts'o" <[email protected]> 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