diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-13 07:07:16 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-13 07:07:16 +0000 |
commit | 8ee94afd309724ae0e8434dc6ff0158da0d7addf (patch) | |
tree | e574c5cada5ac018293c01628f7f767290b9af69 /sys/gnu/fs/ext2fs/fs.h | |
parent | 49e05d204e4bab027e0593dff87e14293a5f077e (diff) | |
download | FreeBSD-src-8ee94afd309724ae0e8434dc6ff0158da0d7addf.zip FreeBSD-src-8ee94afd309724ae0e8434dc6ff0158da0d7addf.tar.gz |
- Lock the buf before clearing flags.
Diffstat (limited to 'sys/gnu/fs/ext2fs/fs.h')
-rw-r--r-- | sys/gnu/fs/ext2fs/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/fs.h b/sys/gnu/fs/ext2fs/fs.h index c12c708..9c0cf71 100644 --- a/sys/gnu/fs/ext2fs/fs.h +++ b/sys/gnu/fs/ext2fs/fs.h @@ -168,9 +168,9 @@ extern u_char *fragtbl[]; long flags; \ int s; \ s = splbio(); \ + BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \ flags = (bp)->b_flags; \ (bp)->b_flags &= ~(B_DIRTY | B_LOCKED); \ - BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \ bremfree(bp); \ splx(s); \ if (flags & B_DIRTY) \ |