Skip to contentSkip to conversation

zram: correct obsolete comment on max_zpage_size

PATCH New Minchan Kim 1 participant 1 message Oct 9, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zram: correct obsolete comment on max_zpage_size

Zram doesn't use xv_malloc any more so it doesn't have limitation about zobj_header.

---
 drivers/staging/zram/zram_drv.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/zram/zram_drv.h +2 -2
index 572c0b1..df2eec4 100644
@@ -39,8 +39,8 @@ static const size_t max_zpage_size = PAGE_SIZE / 4 * 3;
 
 /*
  * NOTE: max_zpage_size must be less than or equal to:
- *   ZS_MAX_ALLOC_SIZE - sizeof(struct zobj_header)
- * otherwise, xv_malloc() would always return failure.
+ *   ZS_MAX_ALLOC_SIZE. Otherwise, zs_malloc() would
+ * always return failure.
  */
 
 /*-- End of configurable params */
Signature · 1 line
1.7.9.5