aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ufs')
-rw-r--r--fs/ufs/super.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 74afb9fbf58e..2b4d2b6234df 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -594,6 +594,9 @@ static void ufs_put_super_internal(struct super_block *sb)
594 594
595 595
596 UFSD("ENTER\n"); 596 UFSD("ENTER\n");
597
598 lock_kernel();
599
597 ufs_put_cstotal(sb); 600 ufs_put_cstotal(sb);
598 size = uspi->s_cssize; 601 size = uspi->s_cssize;
599 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; 602 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift;
@@ -621,6 +624,9 @@ static void ufs_put_super_internal(struct super_block *sb)
621 brelse (sbi->s_ucg[i]); 624 brelse (sbi->s_ucg[i]);
622 kfree (sbi->s_ucg); 625 kfree (sbi->s_ucg);
623 kfree (base); 626 kfree (base);
627
628 unlock_kernel();
629
624 UFSD("EXIT\n"); 630 UFSD("EXIT\n");
625} 631}
626 632