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;
}
}
+1 -1
View File
@@ -477,7 +477,7 @@ struct file
#endif
#if CONFIG_FS_LOCK_BUCKET_SIZE > 0
bool locked; /* Filelock state: false - unlocked, true - locked */
bool f_locked; /* Filelock state: false - unlocked, true - locked */
#endif
};
+1 -1
View File
@@ -34,7 +34,7 @@ class File(Value):
f_tag_fdsan: Value
f_tag_fdcheck: Value
f_backtrace: Value
locked: Value
f_locked: Value
class Inode(Value):