With the command, zram will writeback idle pages from memory to the storage.
 
+Additionally, if a user choose to writeback only huge and idle pages
+this can be accomplished with::
+
+        echo huge_idle > /sys/block/zramX/writeback
+
 If an admin wants to write a specific page in zram device to the backing device,
 they could write a page index into the interface.
 
 
 #define PAGE_WB_SIG "page_index="
 
 #define PAGE_WRITEBACK 0
-#define HUGE_WRITEBACK 1
-#define IDLE_WRITEBACK 2
+#define HUGE_WRITEBACK (1<<0)
+#define IDLE_WRITEBACK (1<<1)
 
 
 static ssize_t writeback_store(struct device *dev,
                mode = IDLE_WRITEBACK;
        else if (sysfs_streq(buf, "huge"))
                mode = HUGE_WRITEBACK;
+       else if (sysfs_streq(buf, "huge_idle"))
+               mode = IDLE_WRITEBACK | HUGE_WRITEBACK;
        else {
                if (strncmp(buf, PAGE_WB_SIG, sizeof(PAGE_WB_SIG) - 1))
                        return -EINVAL;
                                zram_test_flag(zram, index, ZRAM_UNDER_WB))
                        goto next;
 
-               if (mode == IDLE_WRITEBACK &&
+               if (mode & IDLE_WRITEBACK &&
                          !zram_test_flag(zram, index, ZRAM_IDLE))
                        goto next;
-               if (mode == HUGE_WRITEBACK &&
+               if (mode & HUGE_WRITEBACK &&
                          !zram_test_flag(zram, index, ZRAM_HUGE))
                        goto next;
                /*