Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23068
b: refs/heads/master
c: 6b9438e
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Mar 23, 2006
1 parent 4458af3 commit a2eb1d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f82945dff51ff7b33f69cb45a8342b936e966f7f
refs/heads/master: 6b9438e1323a2be10dcc039f6321e7ca18b9459e
6 changes: 3 additions & 3 deletions trunk/fs/fat/fatent.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,19 @@ static struct fatent_operations fat32_ops = {

static inline void lock_fat(struct msdos_sb_info *sbi)
{
down(&sbi->fat_lock);
mutex_lock(&sbi->fat_lock);
}

static inline void unlock_fat(struct msdos_sb_info *sbi)
{
up(&sbi->fat_lock);
mutex_unlock(&sbi->fat_lock);
}

void fat_ent_access_init(struct super_block *sb)
{
struct msdos_sb_info *sbi = MSDOS_SB(sb);

init_MUTEX(&sbi->fat_lock);
mutex_init(&sbi->fat_lock);

switch (sbi->fat_bits) {
case 32:
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/msdos_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ struct fat_slot_info {
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/fs.h>
#include <linux/mutex.h>

struct fat_mount_options {
uid_t fs_uid;
Expand Down Expand Up @@ -226,7 +227,7 @@ struct msdos_sb_info {
unsigned long max_cluster; /* maximum cluster number */
unsigned long root_cluster; /* first cluster of the root directory */
unsigned long fsinfo_sector; /* sector number of FAT32 fsinfo */
struct semaphore fat_lock;
struct mutex fat_lock;
unsigned int prev_free; /* previously allocated cluster number */
unsigned int free_clusters; /* -1 if undefined */
struct fat_mount_options options;
Expand Down

0 comments on commit a2eb1d1

Please sign in to comment.