Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Commit 3b524d2

Browse files
committed
fixup! [LibOS] Implement POSIX locks (fcntl)
Signed-off-by: Paweł Marczewski <[email protected]>
1 parent 0ee10e2 commit 3b524d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibOS/shim/src/fs/shim_fs_lock.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ int posix_lock_set(struct shim_dentry* dent, struct posix_lock* pl, bool wait) {
471471
if (ret < 0)
472472
goto out;
473473
if (req) {
474-
/* `posix_lock_add_request` is allowed to add a request only if `wait` is true */
474+
/* `posix_lock_set_or_add_request` is allowed to add a request only if `wait` is true */
475475
assert(wait);
476476

477477
int result;
@@ -520,7 +520,7 @@ int posix_lock_set_from_ipc(const char* path, struct posix_lock* pl, bool wait,
520520
goto out;
521521

522522
if (req) {
523-
/* `posix_lock_add_request` is allowed to add a request only if `wait` is true */
523+
/* `posix_lock_set_or_add_request` is allowed to add a request only if `wait` is true */
524524
assert(wait);
525525

526526
req->notify.vmid = vmid;

0 commit comments

Comments
 (0)