]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ipc-utilc-use-binary-search-for-max_idx-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 2 Jun 2021 03:53:17 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:53:17 +0000 (13:53 +1000)
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/util.c
ipc/util.h

index 23cf5b5450ffd00b8b6b57c1126f2f2c82cbe38a..0027e47626b7bbc582c964af5e9bd02887218fb3 100644 (file)
@@ -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)
 {
index 317c8fe1538375111973aaa480a1f20b6097e98f..2dd7ce0416d8edfe5398333281abea0cdd556068 100644 (file)
@@ -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.