'\" t .\" Title: journal_dirty_metadata .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux Journalling API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "JOURNAL_DIRTY_METADA" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The Linux Journalling API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" journal_dirty_metadata \- mark a buffer as containing dirty metadata .SH "SYNOPSIS" .HP \w'int\ journal_dirty_metadata('u .BI "int journal_dirty_metadata(handle_t\ *\ " "handle" ", struct\ buffer_head\ *\ " "bh" ");" .SH "ARGUMENTS" .PP \fIhandle\fR .RS 4 transaction to add buffer to\&. .RE .PP \fIbh\fR .RS 4 buffer to mark .RE .SH "DESCRIPTION" .PP Mark dirty metadata which needs to be journaled as part of the current transaction\&. .PP The buffer is placed on the transaction\*(Aqs metadata list and is marked as belonging to the transaction\&. .PP Returns error number or 0 on success\&. .PP Special care needs to be taken if the buffer already belongs to the current committing transaction (in which case we should have frozen data present for that commit)\&. In that case, we don\*(Aqt relink the .SH "BUFFER" .PP that only gets done when the old transaction finally completes its commit\&. .SH "AUTHORS" .PP \fBRoger Gammans\fR <\&rgammans@computer-surgery.co.uk\&> .RS 4 Author. .RE .PP \fBStephen Tweedie\fR <\&sct@redhat.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br