|
@@ -95,22 +95,18 @@
|
|
|
|
|
|
void lock_ufs(struct super_block *sb)
|
|
void lock_ufs(struct super_block *sb)
|
|
{
|
|
{
|
|
-#if defined(CONFIG_SMP) || defined (CONFIG_PREEMPT)
|
|
|
|
struct ufs_sb_info *sbi = UFS_SB(sb);
|
|
struct ufs_sb_info *sbi = UFS_SB(sb);
|
|
|
|
|
|
mutex_lock(&sbi->mutex);
|
|
mutex_lock(&sbi->mutex);
|
|
sbi->mutex_owner = current;
|
|
sbi->mutex_owner = current;
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void unlock_ufs(struct super_block *sb)
|
|
void unlock_ufs(struct super_block *sb)
|
|
{
|
|
{
|
|
-#if defined(CONFIG_SMP) || defined (CONFIG_PREEMPT)
|
|
|
|
struct ufs_sb_info *sbi = UFS_SB(sb);
|
|
struct ufs_sb_info *sbi = UFS_SB(sb);
|
|
|
|
|
|
sbi->mutex_owner = NULL;
|
|
sbi->mutex_owner = NULL;
|
|
mutex_unlock(&sbi->mutex);
|
|
mutex_unlock(&sbi->mutex);
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation)
|
|
static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation)
|