* Author: Mike Pershin <tappro@whamcloud.com>
*/
+#include <lustre/lustre_idl.h> /* OBD_OBJECT_EOF */
+#include <lustre/lustre_user.h> /* struct obd_statfs */
+
#include <sys/dnode.h>
#include <sys/dbuf.h>
#include <sys/spa.h>
#include <sys/sa_impl.h>
#include <sys/txg.h>
-#include <lustre/lustre_idl.h> /* OBD_OBJECT_EOF */
-#include <lustre/lustre_user.h> /* struct obd_statfs */
-
#include "udmu.h"
int udmu_blk_insert_cost(void)
CLASSERT(OSD_DNODE_EST_BLKSHIFT > 0);
est_refdblocks = (refdbytes >> SPA_MAXBLOCKSHIFT) +
- (OSD_DNODE_EST_COUNT << OSD_DNODE_EST_BLKSHIFT);
+ (OSD_DNODE_EST_COUNT >> OSD_DNODE_EST_BLKSHIFT);
est_usedobjs = usedobjs + OSD_DNODE_EST_COUNT;
/* Average space/dnode more than maximum dnode size, use max dnode