jbd2_journal_forget (9) - Linux Man Pages
jbd2_journal_forget: bforget for potentially-journaled buffers.
jbd2_journal_forget - bforget for potentially-journaled buffers.
*handle, struct buffer_head *bh);
- transaction handle
- bh to 'forget'
We can only do the bforget if there are no commits pending against the buffer. If the buffer is dirty in the current running transaction we can safely unlink it.
bh may not be a journalled buffer at all - it may be a non-JBD buffer which came off the hashtable. Check for this.
Decrements bh->b_count by one.
Roger Gammans <rgammans [at] computer-surgery.co.uk>
Stephen Tweedie <sct [at] redhat.com>