diff options
Diffstat (limited to 'fs/ufs/ialloc.c')
-rw-r--r-- | fs/ufs/ialloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ufs/ialloc.c b/fs/ufs/ialloc.c index c684aaad9998..6d7527350026 100644 --- a/fs/ufs/ialloc.c +++ b/fs/ufs/ialloc.c | |||
@@ -103,12 +103,12 @@ void ufs_free_inode (struct inode * inode) | |||
103 | if (ino < ucpi->c_irotor) | 103 | if (ino < ucpi->c_irotor) |
104 | ucpi->c_irotor = ino; | 104 | ucpi->c_irotor = ino; |
105 | fs32_add(sb, &ucg->cg_cs.cs_nifree, 1); | 105 | fs32_add(sb, &ucg->cg_cs.cs_nifree, 1); |
106 | fs32_add(sb, &usb1->fs_cstotal.cs_nifree, 1); | 106 | uspi->cs_total.cs_nifree++; |
107 | fs32_add(sb, &UFS_SB(sb)->fs_cs(cg).cs_nifree, 1); | 107 | fs32_add(sb, &UFS_SB(sb)->fs_cs(cg).cs_nifree, 1); |
108 | 108 | ||
109 | if (is_directory) { | 109 | if (is_directory) { |
110 | fs32_sub(sb, &ucg->cg_cs.cs_ndir, 1); | 110 | fs32_sub(sb, &ucg->cg_cs.cs_ndir, 1); |
111 | fs32_sub(sb, &usb1->fs_cstotal.cs_ndir, 1); | 111 | uspi->cs_total.cs_ndir--; |
112 | fs32_sub(sb, &UFS_SB(sb)->fs_cs(cg).cs_ndir, 1); | 112 | fs32_sub(sb, &UFS_SB(sb)->fs_cs(cg).cs_ndir, 1); |
113 | } | 113 | } |
114 | } | 114 | } |
@@ -228,12 +228,12 @@ cg_found: | |||
228 | } | 228 | } |
229 | 229 | ||
230 | fs32_sub(sb, &ucg->cg_cs.cs_nifree, 1); | 230 | fs32_sub(sb, &ucg->cg_cs.cs_nifree, 1); |
231 | fs32_sub(sb, &usb1->fs_cstotal.cs_nifree, 1); | 231 | uspi->cs_total.cs_nifree--; |
232 | fs32_sub(sb, &sbi->fs_cs(cg).cs_nifree, 1); | 232 | fs32_sub(sb, &sbi->fs_cs(cg).cs_nifree, 1); |
233 | 233 | ||
234 | if (S_ISDIR(mode)) { | 234 | if (S_ISDIR(mode)) { |
235 | fs32_add(sb, &ucg->cg_cs.cs_ndir, 1); | 235 | fs32_add(sb, &ucg->cg_cs.cs_ndir, 1); |
236 | fs32_add(sb, &usb1->fs_cstotal.cs_ndir, 1); | 236 | uspi->cs_total.cs_ndir++; |
237 | fs32_add(sb, &sbi->fs_cs(cg).cs_ndir, 1); | 237 | fs32_add(sb, &sbi->fs_cs(cg).cs_ndir, 1); |
238 | } | 238 | } |
239 | 239 | ||