dm-crypt: use __bio_add_page to add single page to clone bio
[linux-block.git] / fs / fs-writeback.c
index 1db3e3c24b43a0252756efc7720b4a8b3bf032d3..ae4e51e91ee33ef99c7a98c7936783f5d4149b90 100644 (file)
@@ -829,7 +829,7 @@ void wbc_detach_inode(struct writeback_control *wbc)
                 * is okay.  The main goal is avoiding keeping an inode on
                 * the wrong wb for an extended period of time.
                 */
-               if (hweight32(history) > WB_FRN_HIST_THR_SLOTS)
+               if (hweight16(history) > WB_FRN_HIST_THR_SLOTS)
                        inode_switch_wbs(inode, max_id);
        }