Whamcloud - gitweb
b=21500 2.6.31-fc12 patchless client support.
[fs/lustre-release.git] / lustre / llite / lloop.c
index 4a0e35e..736ed41 100644 (file)
@@ -503,8 +503,8 @@ static int loop_set_fd(struct lloop_device *lo, struct file *unused,
          * using unsigned type cast instead of unsigned short cast in order
          * to avoid truncate of CFS_PAGE_SIZE (= 2**16) value
          */
-        blk_queue_hardsect_size(lo->lo_queue,
-                                min_t(unsigned, CFS_PAGE_SIZE, 16384));
+        blk_queue_logical_block_size(lo->lo_queue,
+                                     min_t(unsigned, CFS_PAGE_SIZE, 16384));
         blk_queue_max_sectors(lo->lo_queue,
                               LLOOP_MAX_SEGMENTS << (CFS_PAGE_SHIFT - 9));
         blk_queue_max_phys_segments(lo->lo_queue, LLOOP_MAX_SEGMENTS);