mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add a convenience macro bread_gb() to wrap a call to
breadn_flags(). Comparing with bread(), it adds an argument to pass the flags to getblk(). Sponsored by: The FreeBSD Foundation Tested by: pho MFC after: 2 weeks
This commit is contained in:
parent
ee52bd5713
commit
36a6d2ebc4
1 changed files with 4 additions and 1 deletions
|
|
@ -480,7 +480,10 @@ int buf_dirty_count_severe(void);
|
|||
void bremfree(struct buf *);
|
||||
void bremfreef(struct buf *); /* XXX Force bremfree, only for nfs. */
|
||||
#define bread(vp, blkno, size, cred, bpp) \
|
||||
breadn_flags(vp, blkno, size, 0, 0, 0, cred, 0, bpp)
|
||||
breadn_flags(vp, blkno, size, NULL, NULL, 0, cred, 0, bpp)
|
||||
#define bread_gb(vp, blkno, size, cred, gbflags, bpp) \
|
||||
breadn_flags(vp, blkno, size, NULL, NULL, 0, cred, \
|
||||
gbflags, bpp)
|
||||
#define breadn(vp, blkno, size, rablkno, rabsize, cnt, cred, bpp) \
|
||||
breadn_flags(vp, blkno, size, rablkno, rabsize, cnt, cred, 0, bpp)
|
||||
int breadn_flags(struct vnode *, daddr_t, int, daddr_t *, int *, int,
|
||||
|
|
|
|||
Loading…
Reference in a new issue