Skip to content

Commit

Permalink
staging: zram: correct obsolete comment on max_zpage_size
Browse files Browse the repository at this point in the history
Zram doesn't use xv_malloc any more so it doesn't have
limitation about zobj_header.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Minchan Kim authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 1055d62 commit 55dcbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/zram/zram_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 55dcbbb

Please sign in to comment.