lops.h (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) lops.h (f5456b5d67cf812fd31fe3e130ca216b2e0908e5)
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#ifndef __LOPS_DOT_H__
8#define __LOPS_DOT_H__

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

15extern u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lbn);
16extern void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
17 struct page *page, unsigned size, unsigned offset,
18 u64 blkno);
19extern void gfs2_log_submit_bio(struct bio **biop, int opf);
20extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
21extern int gfs2_find_jhead(struct gfs2_jdesc *jd,
22 struct gfs2_log_header_host *head, bool keep_cache);
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#ifndef __LOPS_DOT_H__
8#define __LOPS_DOT_H__

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

15extern u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lbn);
16extern void gfs2_log_write(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
17 struct page *page, unsigned size, unsigned offset,
18 u64 blkno);
19extern void gfs2_log_submit_bio(struct bio **biop, int opf);
20extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
21extern int gfs2_find_jhead(struct gfs2_jdesc *jd,
22 struct gfs2_log_header_host *head, bool keep_cache);
23extern void gfs2_drain_revokes(struct gfs2_sbd *sdp);
23static inline unsigned int buf_limit(struct gfs2_sbd *sdp)
24{
25 return sdp->sd_ldptrs;
26}
27
28static inline unsigned int databuf_limit(struct gfs2_sbd *sdp)
29{
30 return sdp->sd_ldptrs / 2;

--- 58 unchanged lines hidden ---
24static inline unsigned int buf_limit(struct gfs2_sbd *sdp)
25{
26 return sdp->sd_ldptrs;
27}
28
29static inline unsigned int databuf_limit(struct gfs2_sbd *sdp)
30{
31 return sdp->sd_ldptrs / 2;

--- 58 unchanged lines hidden ---