'\" t .\" Title: jbd2_journal_forget .\" 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_FORGET" "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_forget \- \fBbforget\fR for potentially\-journaled buffers\&. .SH "SYNOPSIS" .HP \w'int\ jbd2_journal_forget('u .BI "int jbd2_journal_forget(handle_t\ *\ " "handle" ", struct\ buffer_head\ *\ " "bh" ");" .SH "ARGUMENTS" .PP \fIhandle\fR .RS 4 transaction handle .RE .PP \fIbh\fR .RS 4 bh to \*(Aqforget\*(Aq .RE .SH "DESCRIPTION" .PP We can only do the bforget if there are no commits pending against the buffer\&. If the buffer is dirty in the current running transaction we can safely unlink it\&. .PP bh may not be a journalled buffer at all \- it may be a non\-JBD buffer which came off the hashtable\&. Check for this\&. .PP Decrements bh\->b_count by one\&. .PP Allow this call even if the handle has aborted \-\-\- it may be part of the caller\*(Aqs cleanup after an abort\&. .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