diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-09-09 01:05:03 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-09 01:35:28 +0300 |
commit | 786727799a85aeabc20cab5ecfb72771bcbd6b85 (patch) | |
tree | 706c7ffbadf27ddfe5a633bd3032c35428a1e8ec /mm/zswap.c | |
parent | 5b999aadbae65696a148f55250d94b6f3d74071e (diff) | |
download | linux-786727799a85aeabc20cab5ecfb72771bcbd6b85.tar.xz |
mm: zpool: constify the zpool_ops
The structure zpool_ops is not modified so make the pointer to it a
pointer to const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
-rw-r--r-- | mm/zswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index 09208c7c86f3..48a1d081e2a5 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -755,7 +755,7 @@ static void zswap_frontswap_invalidate_area(unsigned type) zswap_trees[type] = NULL; } -static struct zpool_ops zswap_zpool_ops = { +static const struct zpool_ops zswap_zpool_ops = { .evict = zswap_writeback_entry }; |