1JOURNAL_FORGET(9) The Linux Journalling API JOURNAL_FORGET(9)
2
3
4
6 journal_forget - bforget for potentially-journaled buffers.
7
9 int journal_forget(handle_t * handle, struct buffer_head * bh);
10
12 handle
13 transaction handle
14
15 bh
16 bh to 'forget'
17
19 We can only do the bforget if there are no commits pending against the
20 buffer. If the buffer is dirty in the current running transaction we
21 can safely unlink it.
22
23 bh may not be a journalled buffer at all - it may be a non-JBD buffer
24 which came off the hashtable. Check for this.
25
26 Decrements bh->b_count by one.
27
28 Allow this call even if the handle has aborted --- it may be part of
29 the caller's cleanup after an abort.
30
32 Roger Gammans <rgammans@computer-surgery.co.uk>
33 Author.
34
35 Stephen Tweedie <sct@redhat.com>
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 JOURNAL_FORGET(9)