|
@@ -14,7 +14,7 @@ void hpfs_lock_creation(struct super_block *s)
|
|
|
#ifdef DEBUG_LOCKS
|
|
|
printk("lock creation\n");
|
|
|
#endif
|
|
|
- down(&hpfs_sb(s)->hpfs_creation_de);
|
|
|
+ mutex_lock(&hpfs_sb(s)->hpfs_creation_de);
|
|
|
}
|
|
|
|
|
|
void hpfs_unlock_creation(struct super_block *s)
|
|
@@ -22,7 +22,7 @@ void hpfs_unlock_creation(struct super_block *s)
|
|
|
#ifdef DEBUG_LOCKS
|
|
|
printk("unlock creation\n");
|
|
|
#endif
|
|
|
- up(&hpfs_sb(s)->hpfs_creation_de);
|
|
|
+ mutex_unlock(&hpfs_sb(s)->hpfs_creation_de);
|
|
|
}
|
|
|
|
|
|
/* Map a sector into a buffer and return pointers to it and to the buffer. */
|