---
name: "jbd2_journal_forget"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/jbd2_journal_forget"
---

# jbd2\_journal\_forget(9)

bforget for potentially-journaled buffers.

## NAME

jbd2\_journal\_forget - **bforget** for potentially-journaled buffers.

## SYNOPSIS

**int jbd2\_journal\_forget(handle\_t \*** *handle***, struct buffer\_head \*** *bh***);**

## ARGUMENTS

*handle*

transaction handle

*bh*

bh to 'forget'

## DESCRIPTION

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.

bh may not be a journalled buffer at all - it may be a non-JBD buffer which came off the hashtable. Check for this.

Decrements bh-\>b\_count by one.

Allow this call even if the handle has aborted --- it may be part of the caller's cleanup after an abort.

## AUTHORS

**Roger Gammans** \<rgammans@computer-surgery.co.uk\>

Author.

**Stephen Tweedie** \<sct@redhat.com\>

Author.

## COPYRIGHT
