Lines Matching refs:mstat
391 struct statfs *mstat;
399 mstat = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK | M_ZERO);
401 error = VFS_STATFS(ump->um_lowervp->v_mount, mstat);
403 free(mstat, M_STATFS);
408 sbp->f_blocks = mstat->f_blocks;
409 sbp->f_files = mstat->f_files;
411 lbsize = mstat->f_bsize;
413 error = VFS_STATFS(ump->um_uppervp->v_mount, mstat);
415 free(mstat, M_STATFS);
423 sbp->f_type = mstat->f_type;
424 sbp->f_flags = mstat->f_flags;
425 sbp->f_bsize = mstat->f_bsize;
426 sbp->f_iosize = mstat->f_iosize;
428 if (mstat->f_bsize != lbsize)
430 mstat->f_bsize;
432 sbp->f_blocks += mstat->f_blocks;
433 sbp->f_bfree = mstat->f_bfree;
434 sbp->f_bavail = mstat->f_bavail;
435 sbp->f_files += mstat->f_files;
436 sbp->f_ffree = mstat->f_ffree;
438 free(mstat, M_STATFS);