mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
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:
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user