diff options
Diffstat (limited to 'sys/gnu/fs/ext2fs/fs.h')
-rw-r--r-- | sys/gnu/fs/ext2fs/fs.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/gnu/fs/ext2fs/fs.h b/sys/gnu/fs/ext2fs/fs.h index 9c0cf71a56da..c54f979eea2d 100644 --- a/sys/gnu/fs/ext2fs/fs.h +++ b/sys/gnu/fs/ext2fs/fs.h @@ -156,22 +156,14 @@ extern u_char *fragtbl[]; * To lock a buffer, set the B_LOCKED flag and then brelse() it. To unlock, * reset the B_LOCKED flag and brelse() the buffer back on the LRU list */ -#define LCK_BUF(bp) { \ - int s; \ - s = splbio(); \ - (bp)->b_flags |= B_LOCKED; \ - splx(s); \ - brelse(bp); \ -} +#define LCK_BUF(bp) BUF_KERNPROC(bp); #define ULCK_BUF(bp) { \ long flags; \ int s; \ s = splbio(); \ - BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \ flags = (bp)->b_flags; \ - (bp)->b_flags &= ~(B_DIRTY | B_LOCKED); \ - bremfree(bp); \ + (bp)->b_flags &= ~(B_DIRTY); \ splx(s); \ if (flags & B_DIRTY) \ bwrite(bp); \ |