fs/file: unify prefix f_ for member locked

update locked to f_locked

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2025-06-07 14:07:05 +08:00
committed by Xiang Xiao
parent 70fc5c3e77
commit 9ca5c1d9c6
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -732,7 +732,7 @@ retry:
/* Update filep lock state */
filep->locked = true;
filep->f_locked = true;
/* When there is a lock change, we need to wake up the blocking lock */
@@ -770,7 +770,7 @@ void file_closelk(FAR struct file *filep)
bool deleted = false;
int ret;
if (!filep->locked)
if (!filep->f_locked)
{
return;
}
@@ -807,7 +807,7 @@ void file_closelk(FAR struct file *filep)
{
deleted = true;
file_lock_delete(file_lock);
filep->locked = false;
filep->f_locked = false;
}
}