tweak comment, fix typo
Cc: <1vier1@web.de>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
}
/**
- * ipc_search_maxidx - search the highest assigned index
+ * ipc_search_maxidx - search for the highest assigned index
* @ids: ipc identifier set
* @limit: known upper limit for highest assigned index
*
* object is deleted.
* If no ipc object is allocated, then -1 is returned.
*
- * ipc_ids.rwsem needs to be owned by the caller.
+ * ipc_ids.rwsem needs to be held by the caller.
*/
static int ipc_search_maxidx(struct ipc_ids *ids, int limit)
{
* ipc_get_maxidx - get the highest assigned index
* @ids: ipc identifier set
*
- * The function returns the highest assinged index for @ids. The function
+ * The function returns the highest assigned index for @ids. The function
* doesn't scan the idr tree, it uses a cached value.
*
* Called with ipc_ids.rwsem held for reading.