'\" t .\" Title: jbd2_journal_dirty_metadata .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux Journalling API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "JBD2_JOURNAL_DIRTY_M" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" jbd2_journal_dirty_metadata \- mark a buffer as containing dirty metadata .SH "SYNOPSIS" .HP \w'int\ jbd2_journal_dirty_metadata('u .BI "int jbd2_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 must have previously had \fBjbd2_journal_get_write_access\fR called so that it has a valid journal_head attached to the buffer head\&. .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 buffer: 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