Whamcloud - gitweb
LU-3079 osd-zfs: Change header order to avoid build fail
[fs/lustre-release.git] / lustre / osd-zfs / udmu.c
index 2a5a783..f36f026 100644 (file)
@@ -45,6 +45,9 @@
  * 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>
@@ -58,9 +61,6 @@
 #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)
@@ -198,7 +198,7 @@ static uint64_t udmu_objs_count_estimate(uint64_t refdbytes,
        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