aboutsummaryrefslogtreecommitdiffstats
path: root/mm/zpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/zpool.c')
-rw-r--r--mm/zpool.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/mm/zpool.c b/mm/zpool.c
index e1e7aa6d1d06..f8cb83e7699b 100644
--- a/mm/zpool.c
+++ b/mm/zpool.c
@@ -101,7 +101,7 @@ static void zpool_put_driver(struct zpool_driver *driver)
101 101
102/** 102/**
103 * zpool_has_pool() - Check if the pool driver is available 103 * zpool_has_pool() - Check if the pool driver is available
104 * @type The type of the zpool to check (e.g. zbud, zsmalloc) 104 * @type: The type of the zpool to check (e.g. zbud, zsmalloc)
105 * 105 *
106 * This checks if the @type pool driver is available. This will try to load 106 * This checks if the @type pool driver is available. This will try to load
107 * the requested module, if needed, but there is no guarantee the module will 107 * the requested module, if needed, but there is no guarantee the module will
@@ -136,10 +136,10 @@ EXPORT_SYMBOL(zpool_has_pool);
136 136
137/** 137/**
138 * zpool_create_pool() - Create a new zpool 138 * zpool_create_pool() - Create a new zpool
139 * @type The type of the zpool to create (e.g. zbud, zsmalloc) 139 * @type: The type of the zpool to create (e.g. zbud, zsmalloc)
140 * @name The name of the zpool (e.g. zram0, zswap) 140 * @name: The name of the zpool (e.g. zram0, zswap)
141 * @gfp The GFP flags to use when allocating the pool. 141 * @gfp: The GFP flags to use when allocating the pool.
142 * @ops The optional ops callback. 142 * @ops: The optional ops callback.
143 * 143 *
144 * This creates a new zpool of the specified type. The gfp flags will be 144 * This creates a new zpool of the specified type. The gfp flags will be
145 * used when allocating memory, if the implementation supports it. If the 145 * used when allocating memory, if the implementation supports it. If the
@@ -201,7 +201,7 @@ struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp,
201 201
202/** 202/**
203 * zpool_destroy_pool() - Destroy a zpool 203 * zpool_destroy_pool() - Destroy a zpool
204 * @pool The zpool to destroy. 204 * @zpool: The zpool to destroy.
205 * 205 *
206 * Implementations must guarantee this to be thread-safe, 206 * Implementations must guarantee this to be thread-safe,
207 * however only when destroying different pools. The same 207 * however only when destroying different pools. The same
@@ -224,7 +224,7 @@ void zpool_destroy_pool(struct zpool *zpool)
224 224
225/** 225/**
226 * zpool_get_type() - Get the type of the zpool 226 * zpool_get_type() - Get the type of the zpool
227 * @pool The zpool to check 227 * @zpool: The zpool to check
228 * 228 *
229 * This returns the type of the pool. 229 * This returns the type of the pool.
230 * 230 *
@@ -239,10 +239,10 @@ const char *zpool_get_type(struct zpool *zpool)
239 239
240/** 240/**
241 * zpool_malloc() - Allocate memory 241 * zpool_malloc() - Allocate memory
242 * @pool The zpool to allocate from. 242 * @zpool: The zpool to allocate from.
243 * @size The amount of memory to allocate. 243 * @size: The amount of memory to allocate.
244 * @gfp The GFP flags to use when allocating memory. 244 * @gfp: The GFP flags to use when allocating memory.
245 * @handle Pointer to the handle to set 245 * @handle: Pointer to the handle to set
246 * 246 *
247 * This allocates the requested amount of memory from the pool. 247 * This allocates the requested amount of memory from the pool.
248 * The gfp flags will be used when allocating memory, if the 248 * The gfp flags will be used when allocating memory, if the
@@ -261,8 +261,8 @@ int zpool_malloc(struct zpool *zpool, size_t size, gfp_t gfp,
261 261
262/** 262/**
263 * zpool_free() - Free previously allocated memory 263 * zpool_free() - Free previously allocated memory
264 * @pool The zpool that allocated the memory. 264 * @zpool: The zpool that allocated the memory.
265 * @handle The handle to the memory to free. 265 * @handle: The handle to the memory to free.
266 * 266 *
267 * This frees previously allocated memory. This does not guarantee 267 * This frees previously allocated memory. This does not guarantee
268 * that the pool will actually free memory, only that the memory 268 * that the pool will actually free memory, only that the memory
@@ -280,9 +280,9 @@ void zpool_free(struct zpool *zpool, unsigned long handle)
280 280
281/** 281/**
282 * zpool_shrink() - Shrink the pool size 282 * zpool_shrink() - Shrink the pool size
283 * @pool The zpool to shrink. 283 * @zpool: The zpool to shrink.
284 * @pages The number of pages to shrink the pool. 284 * @pages: The number of pages to shrink the pool.
285 * @reclaimed The number of pages successfully evicted. 285 * @reclaimed: The number of pages successfully evicted.
286 * 286 *
287 * This attempts to shrink the actual memory size of the pool 287 * This attempts to shrink the actual memory size of the pool
288 * by evicting currently used handle(s). If the pool was 288 * by evicting currently used handle(s). If the pool was
@@ -304,11 +304,11 @@ int zpool_shrink(struct zpool *zpool, unsigned int pages,
304 304
305/** 305/**
306 * zpool_map_handle() - Map a previously allocated handle into memory 306 * zpool_map_handle() - Map a previously allocated handle into memory
307 * @pool The zpool that the handle was allocated from 307 * @zpool: The zpool that the handle was allocated from
308 * @handle The handle to map 308 * @handle: The handle to map
309 * @mm How the memory should be mapped 309 * @mapmode: How the memory should be mapped
310 * 310 *
311 * This maps a previously allocated handle into memory. The @mm 311 * This maps a previously allocated handle into memory. The @mapmode
312 * param indicates to the implementation how the memory will be 312 * param indicates to the implementation how the memory will be
313 * used, i.e. read-only, write-only, read-write. If the 313 * used, i.e. read-only, write-only, read-write. If the
314 * implementation does not support it, the memory will be treated 314 * implementation does not support it, the memory will be treated
@@ -332,8 +332,8 @@ void *zpool_map_handle(struct zpool *zpool, unsigned long handle,
332 332
333/** 333/**
334 * zpool_unmap_handle() - Unmap a previously mapped handle 334 * zpool_unmap_handle() - Unmap a previously mapped handle
335 * @pool The zpool that the handle was allocated from 335 * @zpool: The zpool that the handle was allocated from
336 * @handle The handle to unmap 336 * @handle: The handle to unmap
337 * 337 *
338 * This unmaps a previously mapped handle. Any locks or other 338 * This unmaps a previously mapped handle. Any locks or other
339 * actions that the implementation took in zpool_map_handle() 339 * actions that the implementation took in zpool_map_handle()
@@ -347,7 +347,7 @@ void zpool_unmap_handle(struct zpool *zpool, unsigned long handle)
347 347
348/** 348/**
349 * zpool_get_total_size() - The total size of the pool 349 * zpool_get_total_size() - The total size of the pool
350 * @pool The zpool to check 350 * @zpool: The zpool to check
351 * 351 *
352 * This returns the total size in bytes of the pool. 352 * This returns the total size in bytes of the pool.
353 * 353 *