mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branches 'irq-core-for-linus' and 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
genirq: Fix up irq_node() for irq_data changes.
genirq: Add single IRQ reservation helper
genirq: Warn if enable_irq is called before irq is set up
* 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
semaphore: Remove mutex emulation
staging: Final semaphore cleanup
jbd2: Convert jbd2_slab_create_sem to mutex
hpfs: Convert sbi->hpfs_creation_de to mutex
Fix up trivial change/delete conflicts with deleted 'dream' drivers
(drivers/staging/dream/camera/{mt9d112.c,mt9p012_fox.c,mt9t013.c,s5k3e2fx.c})
This commit is contained in:
commit
82279e6bd7
20 changed files with 36 additions and 37 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ struct hpfs_sb_info {
|
|||
unsigned *sb_bmp_dir; /* main bitmap directory */
|
||||
unsigned sb_c_bitmap; /* current bitmap */
|
||||
unsigned sb_max_fwd_alloc; /* max forwad allocation */
|
||||
struct semaphore hpfs_creation_de; /* when creating dirents, nobody else
|
||||
struct mutex hpfs_creation_de; /* when creating dirents, nobody else
|
||||
can alloc blocks */
|
||||
/*unsigned sb_mounting : 1;*/
|
||||
int sb_timeshift;
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent)
|
|||
sbi->sb_bmp_dir = NULL;
|
||||
sbi->sb_cp_table = NULL;
|
||||
|
||||
init_MUTEX(&sbi->hpfs_creation_de);
|
||||
mutex_init(&sbi->hpfs_creation_de);
|
||||
|
||||
uid = current_uid();
|
||||
gid = current_gid();
|
||||
|
|
|
|||
Loading…
Reference in a new issue