Author: mjg
Date: Wed Feb 12 11:18:12 2020
New Revision: 357811
URL: https://svnweb.freebsd.org/changeset/base/357811

Log:
  vfs: drop remaining zpcpu casts

Modified:
  head/sys/kern/vfs_mount.c

Modified: head/sys/kern/vfs_mount.c
==============================================================================
--- head/sys/kern/vfs_mount.c   Wed Feb 12 11:17:45 2020        (r357810)
+++ head/sys/kern/vfs_mount.c   Wed Feb 12 11:18:12 2020        (r357811)
@@ -1533,9 +1533,9 @@ vfs_assert_mount_counters(struct mount *mp)
                return;
 
        CPU_FOREACH(cpu) {
-               if (*(int *)zpcpu_get_cpu(mp->mnt_ref_pcpu, cpu) != 0 ||
-                   *(int *)zpcpu_get_cpu(mp->mnt_lockref_pcpu, cpu) != 0 ||
-                   *(int *)zpcpu_get_cpu(mp->mnt_writeopcount_pcpu, cpu) != 0)
+               if (*zpcpu_get_cpu(mp->mnt_ref_pcpu, cpu) != 0 ||
+                   *zpcpu_get_cpu(mp->mnt_lockref_pcpu, cpu) != 0 ||
+                   *zpcpu_get_cpu(mp->mnt_writeopcount_pcpu, cpu) != 0)
                        vfs_dump_mount_counters(mp);
        }
 }
@@ -1605,7 +1605,7 @@ vfs_mount_fetch_counter(struct mount *mp, enum mount_c
 
        sum = *base;
        CPU_FOREACH(cpu) {
-               sum += *(int *)zpcpu_get_cpu(pcpu, cpu);
+               sum += *zpcpu_get_cpu(pcpu, cpu);
        }
        return (sum);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to