1JOURNAL_EXTEND(9) The Linux Journalling API JOURNAL_EXTEND(9)
2
3
4
6 journal_extend - extend buffer credits.
7
9 int journal_extend(handle_t * handle, int nblocks);
10
12 handle
13 handle to ´extend´
14
15 nblocks
16 nr blocks to try to extend by.
17
19 Some transactions, such as large extends and truncates, can be done
20 atomically all at once or in several stages. The operation requests a
21 credit for a number of buffer modications in advance, but can extend
22 its credit if it needs more.
23
24 journal_extend tries to give the running handle more buffer credits. It
25 does not guarantee that allocation - this is a best-effort only. The
26 calling process MUST be able to deal cleanly with a failure to extend
27 here.
28
29 Return 0 on success, non-zero on failure.
30
31 return code < 0 implies an error return code > 0 implies normal
32 transaction-full status.
33
35 Roger Gammans <rgammans@computer-surgery.co.uk>
36 Author.
37
38 Stephen Tweedie <sct@redhat.com>
39 Author.
40
42Kernel Hackers Manual 2.6. June 2019 JOURNAL_EXTEND(9)