From: Andrew Morton Date: Wed, 2 Jun 2021 03:53:17 +0000 (+1000) Subject: ipc-utilc-use-binary-search-for-max_idx-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d704f7d1848e48aa3c07d569b850872e8cb06b7e;p=users%2Fjedix%2Flinux-maple.git ipc-utilc-use-binary-search-for-max_idx-fix tweak comment, fix typo Cc: <1vier1@web.de> Cc: Davidlohr Bueso Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/ipc/util.c b/ipc/util.c index 23cf5b5450ffd..0027e47626b7b 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -452,7 +452,7 @@ static void ipc_kht_remove(struct ipc_ids *ids, struct kern_ipc_perm *ipcp) } /** - * 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 * @@ -462,7 +462,7 @@ static void ipc_kht_remove(struct ipc_ids *ids, struct kern_ipc_perm *ipcp) * 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) { diff --git a/ipc/util.h b/ipc/util.h index 317c8fe153837..2dd7ce0416d8e 100644 --- a/ipc/util.h +++ b/ipc/util.h @@ -145,7 +145,7 @@ int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg); * 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.