Lines Matching refs:statp
136 zpl_statfs(struct dentry *dentry, struct kstatfs *statp)
142 error = -zfs_statvfs(dentry->d_inode, statp);
153 while (statp->f_blocks > UINT32_MAX &&
154 statp->f_bsize < SPA_MAXBLOCKSIZE) {
155 statp->f_frsize <<= 1;
156 statp->f_bsize <<= 1;
158 statp->f_blocks >>= 1;
159 statp->f_bfree >>= 1;
160 statp->f_bavail >>= 1;
163 uint64_t usedobjs = statp->f_files - statp->f_ffree;
164 statp->f_ffree = MIN(statp->f_ffree, UINT32_MAX - usedobjs);
165 statp->f_files = statp->f_ffree + usedobjs;