aboutsummaryrefslogtreecommitdiffstats
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-09-08 18:05:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-08 18:35:28 -0400
commit786727799a85aeabc20cab5ecfb72771bcbd6b85 (patch)
tree706c7ffbadf27ddfe5a633bd3032c35428a1e8ec /mm/zpool.c
parent5b999aadbae65696a148f55250d94b6f3d74071e (diff)
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/zpool.c')
-rw-r--r--mm/zpool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/zpool.c b/mm/zpool.c
index 722a4f60e90b..951db32b833f 100644
--- a/mm/zpool.c
+++ b/mm/zpool.c
@@ -22,7 +22,7 @@ struct zpool {
22 22
23 struct zpool_driver *driver; 23 struct zpool_driver *driver;
24 void *pool; 24 void *pool;
25 struct zpool_ops *ops; 25 const struct zpool_ops *ops;
26 26
27 struct list_head list; 27 struct list_head list;
28}; 28};
@@ -115,7 +115,7 @@ static void zpool_put_driver(struct zpool_driver *driver)
115 * Returns: New zpool on success, NULL on failure. 115 * Returns: New zpool on success, NULL on failure.
116 */ 116 */
117struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp, 117struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp,
118 struct zpool_ops *ops) 118 const struct zpool_ops *ops)
119{ 119{
120 struct zpool_driver *driver; 120 struct zpool_driver *driver;
121 struct zpool *zpool; 121 struct zpool *zpool;