aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs/super.c
diff options
context:
space:
mode:
authorEvgeniy Dushistov <dushistov@mail.ru>2006-06-25 08:47:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:03 -0400
commitabf5d15fd2e52517dd56a17a846d5a1f900b7db4 (patch)
treeea537760c201cea57b468044dc733e06781ece2b /fs/ufs/super.c
parent5afb3145c9a733166174e1f5a07c46410b5c4091 (diff)
[PATCH] ufs: easy debug
Currently to turn on debug mode "user" has to edit ~10 files, to turn off he has to do it again. This patch introduce such changes: 1)turn on(off) debug messages via ".config" 2)remove unnecessary duplication of code 3)make "UFSD" macros more similar to function 4)fix some compiler warnings Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r--fs/ufs/super.c114
1 files changed, 54 insertions, 60 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index c00d1e741529..42425999d2d3 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -90,18 +90,7 @@
90#include "swab.h" 90#include "swab.h"
91#include "util.h" 91#include "util.h"
92 92
93#undef UFS_SUPER_DEBUG 93#ifdef CONFIG_UFS_DEBUG
94#undef UFS_SUPER_DEBUG_MORE
95
96
97#undef UFS_SUPER_DEBUG_MORE
98#ifdef UFS_SUPER_DEBUG
99#define UFSD(x) printk("(%s, %d), %s: ", __FILE__, __LINE__, __FUNCTION__); printk x;
100#else
101#define UFSD(x)
102#endif
103
104#ifdef UFS_SUPER_DEBUG_MORE
105/* 94/*
106 * Print contents of ufs_super_block, useful for debugging 95 * Print contents of ufs_super_block, useful for debugging
107 */ 96 */
@@ -157,18 +146,23 @@ void ufs2_print_super_stuff(
157 printk("ufs_print_super_stuff\n"); 146 printk("ufs_print_super_stuff\n");
158 printk("size of usb: %u\n", sizeof(struct ufs_super_block)); 147 printk("size of usb: %u\n", sizeof(struct ufs_super_block));
159 printk(" magic: 0x%x\n", fs32_to_cpu(sb, usb->fs_magic)); 148 printk(" magic: 0x%x\n", fs32_to_cpu(sb, usb->fs_magic));
160 printk(" fs_size: %u\n",fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_size)); 149 printk(" fs_size: %llu\n",
161 printk(" fs_dsize: %u\n",fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_dsize)); 150 (unsigned long long)fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_size));
162 printk(" bsize: %u\n", fs32_to_cpu(usb, usb->fs_bsize)); 151 printk(" fs_dsize: %llu\n",
163 printk(" fsize: %u\n", fs32_to_cpu(usb, usb->fs_fsize)); 152 (unsigned long long)fs64_to_cpu(sb, usb->fs_u11.fs_u2.fs_dsize));
153 printk(" bsize: %u\n", fs32_to_cpu(sb, usb->fs_bsize));
154 printk(" fsize: %u\n", fs32_to_cpu(sb, usb->fs_fsize));
164 printk(" fs_volname: %s\n", usb->fs_u11.fs_u2.fs_volname); 155 printk(" fs_volname: %s\n", usb->fs_u11.fs_u2.fs_volname);
165 printk(" fs_fsmnt: %s\n", usb->fs_u11.fs_u2.fs_fsmnt); 156 printk(" fs_fsmnt: %s\n", usb->fs_u11.fs_u2.fs_fsmnt);
166 printk(" fs_sblockloc: %u\n",fs64_to_cpu(sb, 157 printk(" fs_sblockloc: %llu\n",
167 usb->fs_u11.fs_u2.fs_sblockloc)); 158 (unsigned long long)fs64_to_cpu(sb,
168 printk(" cs_ndir(No of dirs): %u\n",fs64_to_cpu(sb, 159 usb->fs_u11.fs_u2.fs_sblockloc));
169 usb->fs_u11.fs_u2.fs_cstotal.cs_ndir)); 160 printk(" cs_ndir(No of dirs): %llu\n",
170 printk(" cs_nbfree(No of free blocks): %u\n",fs64_to_cpu(sb, 161 (unsigned long long)fs64_to_cpu(sb,
171 usb->fs_u11.fs_u2.fs_cstotal.cs_nbfree)); 162 usb->fs_u11.fs_u2.fs_cstotal.cs_ndir));
163 printk(" cs_nbfree(No of free blocks): %llu\n",
164 (unsigned long long)fs64_to_cpu(sb,
165 usb->fs_u11.fs_u2.fs_cstotal.cs_nbfree));
172 printk("\n"); 166 printk("\n");
173} 167}
174 168
@@ -207,7 +201,7 @@ void ufs_print_cylinder_stuff(struct super_block *sb, struct ufs_cylinder_group
207 printk(" nclusterblks %u\n", fs32_to_cpu(sb, cg->cg_u.cg_44.cg_nclusterblks)); 201 printk(" nclusterblks %u\n", fs32_to_cpu(sb, cg->cg_u.cg_44.cg_nclusterblks));
208 printk("\n"); 202 printk("\n");
209} 203}
210#endif /* UFS_SUPER_DEBUG_MORE */ 204#endif /* CONFIG_UFS_DEBUG */
211 205
212static struct super_operations ufs_super_ops; 206static struct super_operations ufs_super_ops;
213 207
@@ -309,7 +303,7 @@ static int ufs_parse_options (char * options, unsigned * mount_options)
309{ 303{
310 char * p; 304 char * p;
311 305
312 UFSD(("ENTER\n")) 306 UFSD("ENTER\n");
313 307
314 if (!options) 308 if (!options)
315 return 1; 309 return 1;
@@ -398,7 +392,7 @@ static int ufs_read_cylinder_structures (struct super_block *sb)
398 unsigned size, blks, i; 392 unsigned size, blks, i;
399 unsigned flags = 0; 393 unsigned flags = 0;
400 394
401 UFSD(("ENTER\n")) 395 UFSD("ENTER\n");
402 396
403 uspi = sbi->s_uspi; 397 uspi = sbi->s_uspi;
404 398
@@ -451,12 +445,12 @@ static int ufs_read_cylinder_structures (struct super_block *sb)
451 sbi->s_cgno[i] = UFS_CGNO_EMPTY; 445 sbi->s_cgno[i] = UFS_CGNO_EMPTY;
452 } 446 }
453 for (i = 0; i < uspi->s_ncg; i++) { 447 for (i = 0; i < uspi->s_ncg; i++) {
454 UFSD(("read cg %u\n", i)) 448 UFSD("read cg %u\n", i);
455 if (!(sbi->s_ucg[i] = sb_bread(sb, ufs_cgcmin(i)))) 449 if (!(sbi->s_ucg[i] = sb_bread(sb, ufs_cgcmin(i))))
456 goto failed; 450 goto failed;
457 if (!ufs_cg_chkmagic (sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data)) 451 if (!ufs_cg_chkmagic (sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data))
458 goto failed; 452 goto failed;
459#ifdef UFS_SUPER_DEBUG_MORE 453#ifdef CONFIG_UFS_DEBUG
460 ufs_print_cylinder_stuff(sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data); 454 ufs_print_cylinder_stuff(sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data);
461#endif 455#endif
462 } 456 }
@@ -466,7 +460,7 @@ static int ufs_read_cylinder_structures (struct super_block *sb)
466 sbi->s_cgno[i] = UFS_CGNO_EMPTY; 460 sbi->s_cgno[i] = UFS_CGNO_EMPTY;
467 } 461 }
468 sbi->s_cg_loaded = 0; 462 sbi->s_cg_loaded = 0;
469 UFSD(("EXIT\n")) 463 UFSD("EXIT\n");
470 return 1; 464 return 1;
471 465
472failed: 466failed:
@@ -479,7 +473,7 @@ failed:
479 for (i = 0; i < UFS_MAX_GROUP_LOADED; i++) 473 for (i = 0; i < UFS_MAX_GROUP_LOADED; i++)
480 kfree (sbi->s_ucpi[i]); 474 kfree (sbi->s_ucpi[i]);
481 } 475 }
482 UFSD(("EXIT (FAILED)\n")) 476 UFSD("EXIT (FAILED)\n");
483 return 0; 477 return 0;
484} 478}
485 479
@@ -495,7 +489,7 @@ static void ufs_put_cylinder_structures (struct super_block *sb)
495 unsigned char * base, * space; 489 unsigned char * base, * space;
496 unsigned blks, size, i; 490 unsigned blks, size, i;
497 491
498 UFSD(("ENTER\n")) 492 UFSD("ENTER\n");
499 493
500 uspi = sbi->s_uspi; 494 uspi = sbi->s_uspi;
501 495
@@ -523,7 +517,7 @@ static void ufs_put_cylinder_structures (struct super_block *sb)
523 brelse (sbi->s_ucg[i]); 517 brelse (sbi->s_ucg[i]);
524 kfree (sbi->s_ucg); 518 kfree (sbi->s_ucg);
525 kfree (base); 519 kfree (base);
526 UFSD(("EXIT\n")) 520 UFSD("EXIT\n");
527} 521}
528 522
529static int ufs_fill_super(struct super_block *sb, void *data, int silent) 523static int ufs_fill_super(struct super_block *sb, void *data, int silent)
@@ -544,7 +538,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
544 ubh = NULL; 538 ubh = NULL;
545 flags = 0; 539 flags = 0;
546 540
547 UFSD(("ENTER\n")) 541 UFSD("ENTER\n");
548 542
549 sbi = kmalloc(sizeof(struct ufs_sb_info), GFP_KERNEL); 543 sbi = kmalloc(sizeof(struct ufs_sb_info), GFP_KERNEL);
550 if (!sbi) 544 if (!sbi)
@@ -552,7 +546,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
552 sb->s_fs_info = sbi; 546 sb->s_fs_info = sbi;
553 memset(sbi, 0, sizeof(struct ufs_sb_info)); 547 memset(sbi, 0, sizeof(struct ufs_sb_info));
554 548
555 UFSD(("flag %u\n", (int)(sb->s_flags & MS_RDONLY))) 549 UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY));
556 550
557#ifndef CONFIG_UFS_FS_WRITE 551#ifndef CONFIG_UFS_FS_WRITE
558 if (!(sb->s_flags & MS_RDONLY)) { 552 if (!(sb->s_flags & MS_RDONLY)) {
@@ -593,7 +587,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
593 the rules */ 587 the rules */
594 switch (sbi->s_mount_opt & UFS_MOUNT_UFSTYPE) { 588 switch (sbi->s_mount_opt & UFS_MOUNT_UFSTYPE) {
595 case UFS_MOUNT_UFSTYPE_44BSD: 589 case UFS_MOUNT_UFSTYPE_44BSD:
596 UFSD(("ufstype=44bsd\n")) 590 UFSD("ufstype=44bsd\n");
597 uspi->s_fsize = block_size = 512; 591 uspi->s_fsize = block_size = 512;
598 uspi->s_fmask = ~(512 - 1); 592 uspi->s_fmask = ~(512 - 1);
599 uspi->s_fshift = 9; 593 uspi->s_fshift = 9;
@@ -602,7 +596,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
602 flags |= UFS_DE_44BSD | UFS_UID_44BSD | UFS_ST_44BSD | UFS_CG_44BSD; 596 flags |= UFS_DE_44BSD | UFS_UID_44BSD | UFS_ST_44BSD | UFS_CG_44BSD;
603 break; 597 break;
604 case UFS_MOUNT_UFSTYPE_UFS2: 598 case UFS_MOUNT_UFSTYPE_UFS2:
605 UFSD(("ufstype=ufs2\n")); 599 UFSD("ufstype=ufs2\n");
606 super_block_offset=SBLOCK_UFS2; 600 super_block_offset=SBLOCK_UFS2;
607 uspi->s_fsize = block_size = 512; 601 uspi->s_fsize = block_size = 512;
608 uspi->s_fmask = ~(512 - 1); 602 uspi->s_fmask = ~(512 - 1);
@@ -617,7 +611,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
617 break; 611 break;
618 612
619 case UFS_MOUNT_UFSTYPE_SUN: 613 case UFS_MOUNT_UFSTYPE_SUN:
620 UFSD(("ufstype=sun\n")) 614 UFSD("ufstype=sun\n");
621 uspi->s_fsize = block_size = 1024; 615 uspi->s_fsize = block_size = 1024;
622 uspi->s_fmask = ~(1024 - 1); 616 uspi->s_fmask = ~(1024 - 1);
623 uspi->s_fshift = 10; 617 uspi->s_fshift = 10;
@@ -628,7 +622,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
628 break; 622 break;
629 623
630 case UFS_MOUNT_UFSTYPE_SUNx86: 624 case UFS_MOUNT_UFSTYPE_SUNx86:
631 UFSD(("ufstype=sunx86\n")) 625 UFSD("ufstype=sunx86\n");
632 uspi->s_fsize = block_size = 1024; 626 uspi->s_fsize = block_size = 1024;
633 uspi->s_fmask = ~(1024 - 1); 627 uspi->s_fmask = ~(1024 - 1);
634 uspi->s_fshift = 10; 628 uspi->s_fshift = 10;
@@ -639,7 +633,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
639 break; 633 break;
640 634
641 case UFS_MOUNT_UFSTYPE_OLD: 635 case UFS_MOUNT_UFSTYPE_OLD:
642 UFSD(("ufstype=old\n")) 636 UFSD("ufstype=old\n");
643 uspi->s_fsize = block_size = 1024; 637 uspi->s_fsize = block_size = 1024;
644 uspi->s_fmask = ~(1024 - 1); 638 uspi->s_fmask = ~(1024 - 1);
645 uspi->s_fshift = 10; 639 uspi->s_fshift = 10;
@@ -654,7 +648,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
654 break; 648 break;
655 649
656 case UFS_MOUNT_UFSTYPE_NEXTSTEP: 650 case UFS_MOUNT_UFSTYPE_NEXTSTEP:
657 UFSD(("ufstype=nextstep\n")) 651 UFSD("ufstype=nextstep\n");
658 uspi->s_fsize = block_size = 1024; 652 uspi->s_fsize = block_size = 1024;
659 uspi->s_fmask = ~(1024 - 1); 653 uspi->s_fmask = ~(1024 - 1);
660 uspi->s_fshift = 10; 654 uspi->s_fshift = 10;
@@ -669,7 +663,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
669 break; 663 break;
670 664
671 case UFS_MOUNT_UFSTYPE_NEXTSTEP_CD: 665 case UFS_MOUNT_UFSTYPE_NEXTSTEP_CD:
672 UFSD(("ufstype=nextstep-cd\n")) 666 UFSD("ufstype=nextstep-cd\n");
673 uspi->s_fsize = block_size = 2048; 667 uspi->s_fsize = block_size = 2048;
674 uspi->s_fmask = ~(2048 - 1); 668 uspi->s_fmask = ~(2048 - 1);
675 uspi->s_fshift = 11; 669 uspi->s_fshift = 11;
@@ -684,7 +678,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
684 break; 678 break;
685 679
686 case UFS_MOUNT_UFSTYPE_OPENSTEP: 680 case UFS_MOUNT_UFSTYPE_OPENSTEP:
687 UFSD(("ufstype=openstep\n")) 681 UFSD("ufstype=openstep\n");
688 uspi->s_fsize = block_size = 1024; 682 uspi->s_fsize = block_size = 1024;
689 uspi->s_fmask = ~(1024 - 1); 683 uspi->s_fmask = ~(1024 - 1);
690 uspi->s_fshift = 10; 684 uspi->s_fshift = 10;
@@ -699,7 +693,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
699 break; 693 break;
700 694
701 case UFS_MOUNT_UFSTYPE_HP: 695 case UFS_MOUNT_UFSTYPE_HP:
702 UFSD(("ufstype=hp\n")) 696 UFSD("ufstype=hp\n");
703 uspi->s_fsize = block_size = 1024; 697 uspi->s_fsize = block_size = 1024;
704 uspi->s_fmask = ~(1024 - 1); 698 uspi->s_fmask = ~(1024 - 1);
705 uspi->s_fshift = 10; 699 uspi->s_fshift = 10;
@@ -820,11 +814,11 @@ magic_found:
820 ubh = NULL; 814 ubh = NULL;
821 block_size = uspi->s_fsize; 815 block_size = uspi->s_fsize;
822 super_block_size = uspi->s_sbsize; 816 super_block_size = uspi->s_sbsize;
823 UFSD(("another value of block_size or super_block_size %u, %u\n", block_size, super_block_size)) 817 UFSD("another value of block_size or super_block_size %u, %u\n", block_size, super_block_size);
824 goto again; 818 goto again;
825 } 819 }
826 820
827#ifdef UFS_SUPER_DEBUG_MORE 821#ifdef CONFIG_UFS_DEBUG
828 if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) 822 if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
829 ufs2_print_super_stuff(sb,usb); 823 ufs2_print_super_stuff(sb,usb);
830 else 824 else
@@ -842,13 +836,13 @@ magic_found:
842 (ufs_get_fs_state(sb, usb1, usb3) == (UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time))))) { 836 (ufs_get_fs_state(sb, usb1, usb3) == (UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time))))) {
843 switch(usb1->fs_clean) { 837 switch(usb1->fs_clean) {
844 case UFS_FSCLEAN: 838 case UFS_FSCLEAN:
845 UFSD(("fs is clean\n")) 839 UFSD("fs is clean\n");
846 break; 840 break;
847 case UFS_FSSTABLE: 841 case UFS_FSSTABLE:
848 UFSD(("fs is stable\n")) 842 UFSD("fs is stable\n");
849 break; 843 break;
850 case UFS_FSOSF1: 844 case UFS_FSOSF1:
851 UFSD(("fs is DEC OSF/1\n")) 845 UFSD("fs is DEC OSF/1\n");
852 break; 846 break;
853 case UFS_FSACTIVE: 847 case UFS_FSACTIVE:
854 printk("ufs_read_super: fs is active\n"); 848 printk("ufs_read_super: fs is active\n");
@@ -901,8 +895,8 @@ magic_found:
901 uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask); 895 uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask);
902 uspi->s_bshift = fs32_to_cpu(sb, usb1->fs_bshift); 896 uspi->s_bshift = fs32_to_cpu(sb, usb1->fs_bshift);
903 uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift); 897 uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift);
904 UFSD(("uspi->s_bshift = %d,uspi->s_fshift = %d", uspi->s_bshift, 898 UFSD("uspi->s_bshift = %d,uspi->s_fshift = %d", uspi->s_bshift,
905 uspi->s_fshift)); 899 uspi->s_fshift);
906 uspi->s_fpbshift = fs32_to_cpu(sb, usb1->fs_fragshift); 900 uspi->s_fpbshift = fs32_to_cpu(sb, usb1->fs_fragshift);
907 uspi->s_fsbtodb = fs32_to_cpu(sb, usb1->fs_fsbtodb); 901 uspi->s_fsbtodb = fs32_to_cpu(sb, usb1->fs_fsbtodb);
908 /* s_sbsize already set */ 902 /* s_sbsize already set */
@@ -935,12 +929,11 @@ magic_found:
935 * Compute another frequently used values 929 * Compute another frequently used values
936 */ 930 */
937 uspi->s_fpbmask = uspi->s_fpb - 1; 931 uspi->s_fpbmask = uspi->s_fpb - 1;
938 if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) { 932 if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
939 uspi->s_apbshift = uspi->s_bshift - 3; 933 uspi->s_apbshift = uspi->s_bshift - 3;
940 } 934 else
941 else {
942 uspi->s_apbshift = uspi->s_bshift - 2; 935 uspi->s_apbshift = uspi->s_bshift - 2;
943 } 936
944 uspi->s_2apbshift = uspi->s_apbshift * 2; 937 uspi->s_2apbshift = uspi->s_apbshift * 2;
945 uspi->s_3apbshift = uspi->s_apbshift * 3; 938 uspi->s_3apbshift = uspi->s_apbshift * 3;
946 uspi->s_apb = 1 << uspi->s_apbshift; 939 uspi->s_apb = 1 << uspi->s_apbshift;
@@ -975,7 +968,7 @@ magic_found:
975 if (!ufs_read_cylinder_structures(sb)) 968 if (!ufs_read_cylinder_structures(sb))
976 goto failed; 969 goto failed;
977 970
978 UFSD(("EXIT\n")) 971 UFSD("EXIT\n");
979 return 0; 972 return 0;
980 973
981dalloc_failed: 974dalloc_failed:
@@ -986,11 +979,11 @@ failed:
986 kfree (uspi); 979 kfree (uspi);
987 kfree(sbi); 980 kfree(sbi);
988 sb->s_fs_info = NULL; 981 sb->s_fs_info = NULL;
989 UFSD(("EXIT (FAILED)\n")) 982 UFSD("EXIT (FAILED)\n");
990 return -EINVAL; 983 return -EINVAL;
991 984
992failed_nomem: 985failed_nomem:
993 UFSD(("EXIT (NOMEM)\n")) 986 UFSD("EXIT (NOMEM)\n");
994 return -ENOMEM; 987 return -ENOMEM;
995} 988}
996 989
@@ -1002,7 +995,7 @@ static void ufs_write_super (struct super_block *sb) {
1002 995
1003 lock_kernel(); 996 lock_kernel();
1004 997
1005 UFSD(("ENTER\n")) 998 UFSD("ENTER\n");
1006 flags = UFS_SB(sb)->s_flags; 999 flags = UFS_SB(sb)->s_flags;
1007 uspi = UFS_SB(sb)->s_uspi; 1000 uspi = UFS_SB(sb)->s_uspi;
1008 usb1 = ubh_get_usb_first(uspi); 1001 usb1 = ubh_get_usb_first(uspi);
@@ -1017,15 +1010,15 @@ static void ufs_write_super (struct super_block *sb) {
1017 ubh_mark_buffer_dirty (USPI_UBH(uspi)); 1010 ubh_mark_buffer_dirty (USPI_UBH(uspi));
1018 } 1011 }
1019 sb->s_dirt = 0; 1012 sb->s_dirt = 0;
1020 UFSD(("EXIT\n")) 1013 UFSD("EXIT\n");
1021 unlock_kernel(); 1014 unlock_kernel();
1022} 1015}
1023 1016
1024static void ufs_put_super (struct super_block *sb) 1017static void ufs_put_super(struct super_block *sb)
1025{ 1018{
1026 struct ufs_sb_info * sbi = UFS_SB(sb); 1019 struct ufs_sb_info * sbi = UFS_SB(sb);
1027 1020
1028 UFSD(("ENTER\n")) 1021 UFSD("ENTER\n");
1029 1022
1030 if (!(sb->s_flags & MS_RDONLY)) 1023 if (!(sb->s_flags & MS_RDONLY))
1031 ufs_put_cylinder_structures (sb); 1024 ufs_put_cylinder_structures (sb);
@@ -1034,6 +1027,7 @@ static void ufs_put_super (struct super_block *sb)
1034 kfree (sbi->s_uspi); 1027 kfree (sbi->s_uspi);
1035 kfree (sbi); 1028 kfree (sbi);
1036 sb->s_fs_info = NULL; 1029 sb->s_fs_info = NULL;
1030UFSD("EXIT\n");
1037 return; 1031 return;
1038} 1032}
1039 1033