1JOURNAL_DIRTY_METADA(9) The Linux Journalling API JOURNAL_DIRTY_METADA(9)
2
3
4
6 journal_dirty_metadata - mark a buffer as containing dirty metadata
7
9 int journal_dirty_metadata(handle_t * handle, struct buffer_head * bh);
10
12 handle
13 transaction to add buffer to.
14
15 bh
16 buffer to mark
17
19 Mark dirty metadata which needs to be journaled as part of the current
20 transaction.
21
22 The buffer is placed on the transaction's metadata list and is marked
23 as belonging to the transaction.
24
25 Returns error number or 0 on success.
26
27 Special care needs to be taken if the buffer already belongs to the
28 current committing transaction (in which case we should have frozen
29 data present for that commit). In that case, we don't relink the
30
32 that only gets done when the old transaction finally completes its
33 commit.
34
36 Roger Gammans <rgammans@computer-surgery.co.uk>
37 Author.
38
39 Stephen Tweedie <sct@redhat.com>
40 Author.
41
43Kernel Hackers Manual 2.6. November 2011 JOURNAL_DIRTY_METADA(9)