Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/buf.h
Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Release a lock. Only the acquiring process may free the lock unless | * Release a lock. Only the acquiring process may free the lock unless | ||||
* it has been handed off to biodone. | * it has been handed off to biodone. | ||||
*/ | */ | ||||
#define BUF_UNLOCK(bp) do { \ | #define BUF_UNLOCK(bp) do { \ | ||||
KASSERT(((bp)->b_flags & B_REMFREE) == 0, \ | KASSERT(((bp)->b_flags & B_REMFREE) == 0, \ | ||||
("BUF_UNLOCK %p while B_REMFREE is still set.", (bp))); \ | ("BUF_UNLOCK %p while B_REMFREE is still set.", (bp))); \ | ||||
\ | \ | ||||
BUF_UNLOCK_NOASSERT((bp)); \ | |||||
} while (0) | |||||
#define BUF_UNLOCK_NOASSERT(bp) do { \ | |||||
kib: I would name it BUF_UNLOCK_RAW() | |||||
cemAuthorUnsubmitted Done Inline ActionsWill change cem: Will change | |||||
(void)_lockmgr_args(&(bp)->b_lock, LK_RELEASE, NULL, \ | (void)_lockmgr_args(&(bp)->b_lock, LK_RELEASE, NULL, \ | ||||
LK_WMESG_DEFAULT, LK_PRIO_DEFAULT, LK_TIMO_DEFAULT, \ | LK_WMESG_DEFAULT, LK_PRIO_DEFAULT, LK_TIMO_DEFAULT, \ | ||||
LOCK_FILE, LOCK_LINE); \ | LOCK_FILE, LOCK_LINE); \ | ||||
} while (0) | } while (0) | ||||
/* | /* | ||||
* Check if a buffer lock is recursed. | * Check if a buffer lock is recursed. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | |||||
void bufstrategy(struct bufobj *, struct buf *); | void bufstrategy(struct bufobj *, struct buf *); | ||||
void brelse(struct buf *); | void brelse(struct buf *); | ||||
void bqrelse(struct buf *); | void bqrelse(struct buf *); | ||||
int vfs_bio_awrite(struct buf *); | int vfs_bio_awrite(struct buf *); | ||||
void vfs_busy_pages_acquire(struct buf *bp); | void vfs_busy_pages_acquire(struct buf *bp); | ||||
void vfs_busy_pages_release(struct buf *bp); | void vfs_busy_pages_release(struct buf *bp); | ||||
struct buf *incore(struct bufobj *, daddr_t); | struct buf *incore(struct bufobj *, daddr_t); | ||||
struct buf *gbincore(struct bufobj *, daddr_t); | struct buf *gbincore(struct bufobj *, daddr_t); | ||||
struct buf *gbincore_unlocked(struct bufobj *, daddr_t); | |||||
struct buf *getblk(struct vnode *, daddr_t, int, int, int, int); | struct buf *getblk(struct vnode *, daddr_t, int, int, int, int); | ||||
int getblkx(struct vnode *vp, daddr_t blkno, daddr_t dblkno, int size, | int getblkx(struct vnode *vp, daddr_t blkno, daddr_t dblkno, int size, | ||||
int slpflag, int slptimeo, int flags, struct buf **bpp); | int slpflag, int slptimeo, int flags, struct buf **bpp); | ||||
struct buf *geteblk(int, int); | struct buf *geteblk(int, int); | ||||
int bufwait(struct buf *); | int bufwait(struct buf *); | ||||
int bufwrite(struct buf *); | int bufwrite(struct buf *); | ||||
void bufdone(struct buf *); | void bufdone(struct buf *); | ||||
void bd_speedup(void); | void bd_speedup(void); | ||||
Show All 37 Lines |
I would name it BUF_UNLOCK_RAW()