X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fzfs_vfsops.c;h=0ee541358cd67a0a3b2553246666c6b82341e025;hb=620c7598e4df6756238c56aec79601408822e44d;hp=31692f4379d80e0a41d287f3ee494bd1ac7a8066;hpb=76659dc110ef2ada13bcb8e4e2ec60d8216c6836;p=zfs.git diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c index 31692f4..0ee5413 100644 --- a/module/zfs/zfs_vfsops.c +++ b/module/zfs/zfs_vfsops.c @@ -944,7 +944,7 @@ zfs_statvfs(struct dentry *dentry, struct kstatfs *statp) * For f_ffree, report the smaller of the number of object available * and the number of blocks (each object will take at least a block). */ - statp->f_ffree = MIN(availobjs, statp->f_bfree); + statp->f_ffree = MIN(availobjs, availbytes >> DNODE_SHIFT); statp->f_files = statp->f_ffree + usedobjs; statp->f_fsid.val[0] = dentry->d_sb->s_dev; statp->f_fsid.val[1] = 0;