glops.c (22164fbe274c2dd96d2887fe121896d321000a61) | glops.c (2e9eeaa1175112ac494ba3c2ea4b71b1febeb6ab) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 5 */ 6 7#include <linux/spinlock.h> 8#include <linux/completion.h> --- 81 unchanged lines hidden (view full) --- 90 tr.tr_revokes = atomic_read(&gl->gl_ail_count); 91 92 if (!tr.tr_revokes) 93 return; 94 95 /* A shortened, inline version of gfs2_trans_begin() 96 * tr->alloced is not set since the transaction structure is 97 * on the stack */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 5 */ 6 7#include <linux/spinlock.h> 8#include <linux/completion.h> --- 81 unchanged lines hidden (view full) --- 90 tr.tr_revokes = atomic_read(&gl->gl_ail_count); 91 92 if (!tr.tr_revokes) 93 return; 94 95 /* A shortened, inline version of gfs2_trans_begin() 96 * tr->alloced is not set since the transaction structure is 97 * on the stack */ |
98 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); | 98 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes); |
99 tr.tr_ip = _RET_IP_; 100 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) 101 return; 102 WARN_ON_ONCE(current->journal_info); 103 current->journal_info = &tr; 104 105 __gfs2_ail_flush(gl, 0, tr.tr_revokes); 106 --- 544 unchanged lines hidden --- | 99 tr.tr_ip = _RET_IP_; 100 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) 101 return; 102 WARN_ON_ONCE(current->journal_info); 103 current->journal_info = &tr; 104 105 __gfs2_ail_flush(gl, 0, tr.tr_revokes); 106 --- 544 unchanged lines hidden --- |