log.c (5a61ae1402f15276ee4e003e198aab816958ca69) log.c (521031fa970109fbf7a808322fb0c92092a51cf0)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
5 */
6
7#include <linux/sched.h>
8#include <linux/slab.h>

--- 888 unchanged lines hidden (view full) ---

897 gfs2_ail1_start(sdp);
898 gfs2_ail1_wait(sdp);
899 if (gfs2_ail1_empty(sdp, 0))
900 return;
901 }
902}
903
904/**
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
5 */
6
7#include <linux/sched.h>
8#include <linux/slab.h>

--- 888 unchanged lines hidden (view full) ---

897 gfs2_ail1_start(sdp);
898 gfs2_ail1_wait(sdp);
899 if (gfs2_ail1_empty(sdp, 0))
900 return;
901 }
902}
903
904/**
905 * drain_bd - drain the buf and databuf queue for a failed transaction
905 * trans_drain - drain the buf and databuf queue for a failed transaction
906 * @tr: the transaction to drain
907 *
908 * When this is called, we're taking an error exit for a log write that failed
909 * but since we bypassed the after_commit functions, we need to remove the
910 * items from the buf and databuf queue.
911 */
912static void trans_drain(struct gfs2_trans *tr)
913{

--- 342 unchanged lines hidden ---
906 * @tr: the transaction to drain
907 *
908 * When this is called, we're taking an error exit for a log write that failed
909 * but since we bypassed the after_commit functions, we need to remove the
910 * items from the buf and databuf queue.
911 */
912static void trans_drain(struct gfs2_trans *tr)
913{

--- 342 unchanged lines hidden ---