summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-09 15:30:46 +0000
committerMiles Bader <miles@gnu.org>1995-05-09 15:30:46 +0000
commit587d16ae6b68f150798a1061f40d4dc360a4e9db (patch)
treefb144996ea602ee05a9222fc76aba6634f4389ea /ext2fs
parent276a2d7604ef1e71332a1f264d61e00e3554498a (diff)
Formerly ext2fs.h.~42~
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/ext2fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index 13e3f0cb..4afafe69 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -359,7 +359,7 @@ struct pokel global_pokel;
record which disk blocks are actually modified, so we don't stomp on parts
of the disk which are backed by file pagers. */
char *modified_global_blocks;
-struct mutex modified_global_blocks_lock;
+spin_lock_t modified_global_blocks_lock;
/* Marks the global block BLOCK as being modified, and returns true if we
think it may have been clean before (but we may not be sure). Note that
@@ -371,9 +371,9 @@ global_block_modified (block_t block)
if (modified_global_blocks)
{
int was_clean;
- mutex_lock (&modified_global_blocks_lock);
+ spin_lock (&modified_global_blocks_lock);
was_clean = !set_bit(block, modified_global_blocks);
- mutex_unlock (&modified_global_blocks_lock);
+ spin_unlock (&modified_global_blocks_lock);
return was_clean;
}
else