VFS accounting: remove unneeded code
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 15 Apr 2012 20:09:45 +0000 (22:09 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 15 Apr 2012 20:09:45 +0000 (22:09 +0200)
sys/kern/vfs_default.c

index 37bacaf..73821df 100644 (file)
@@ -1488,21 +1488,6 @@ vfs_stdac_init(struct mount *mp)
 void
 vfs_stdac_done(struct mount *mp)
 {
-       const char* fs_type;
-       int i, fstype_ok = 0;
-
-       /* is mounted fs type one we want to do some accounting for ? */
-       for (i=0; i<ACCOUNTING_NB_FSTYPES; i++) {
-               fs_type = accounting_fstypes[i];
-               if (strncmp(mp->mnt_stat.f_fstypename, fs_type,
-                                       sizeof(mp->mnt_stat)) == 0) {
-                       fstype_ok = 1;
-                       break;
-               }
-       }
-       if (fstype_ok == 0)
-               return;
-
        vq_done(mp);
 }