writeback: fix call of incorrect macro
[linux-block.git] / fs / fs-writeback.c
index 195dc23e0d83109df6cb3942813ecb0e4d8caf5d..6faeb45234ed66309ca953fa7f89bb94392e2bef 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);
        }