- Clean-up comments that refer to the use of B_LOCKED.
This commit is contained in:
parent
7abc12de03
commit
7637e5854b
@ -488,7 +488,6 @@ static int compute_sb_data(devvp, es, fs)
|
||||
printf("EXT2-fs: unable to read group descriptors (%d)\n", error);
|
||||
return EIO;
|
||||
}
|
||||
/* Set the B_LOCKED flag on the buffer, then brelse() it */
|
||||
LCK_BUF(fs->s_group_desc[i])
|
||||
}
|
||||
if(!ext2_check_descriptors(fs)) {
|
||||
|
@ -153,8 +153,10 @@ extern u_char *fragtbl[];
|
||||
#define unlock_super(devvp) VOP_UNLOCK(devvp, 0, curthread)
|
||||
|
||||
/*
|
||||
* 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
|
||||
* Historically, ext2fs kept it's metadata buffers on the LOCKED queue. Now,
|
||||
* we simply change the lock owner to kern so that it may be released from
|
||||
* another context. Later, we release the buffer, and conditionally write it
|
||||
* when we're done.
|
||||
*/
|
||||
#define LCK_BUF(bp) BUF_KERNPROC(bp);
|
||||
|
||||
|
@ -488,7 +488,6 @@ static int compute_sb_data(devvp, es, fs)
|
||||
printf("EXT2-fs: unable to read group descriptors (%d)\n", error);
|
||||
return EIO;
|
||||
}
|
||||
/* Set the B_LOCKED flag on the buffer, then brelse() it */
|
||||
LCK_BUF(fs->s_group_desc[i])
|
||||
}
|
||||
if(!ext2_check_descriptors(fs)) {
|
||||
|
@ -153,8 +153,10 @@ extern u_char *fragtbl[];
|
||||
#define unlock_super(devvp) VOP_UNLOCK(devvp, 0, curthread)
|
||||
|
||||
/*
|
||||
* 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
|
||||
* Historically, ext2fs kept it's metadata buffers on the LOCKED queue. Now,
|
||||
* we simply change the lock owner to kern so that it may be released from
|
||||
* another context. Later, we release the buffer, and conditionally write it
|
||||
* when we're done.
|
||||
*/
|
||||
#define LCK_BUF(bp) BUF_KERNPROC(bp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user