summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngryProton <[email protected]>2025-12-24 14:31:44 +0800
committerR b b666 <[email protected]>2025-12-26 15:10:48 +0800
commit916b2128556e3b8e57497b9dcfd392aeadcbf0bc (patch)
treedfec24d1d4c100756f707360e44327d07f1c7223
parent6b5331a4101a4464213e20a7d928c77a99192e36 (diff)
[FIX]Update vnode size after writing to tmpfs
-rw-r--r--components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c b/components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c
index c1ff4a122b..1dc1fd54f9 100644
--- a/components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c
+++ b/components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c
@@ -358,7 +358,7 @@ static ssize_t dfs_tmpfs_write(struct dfs_file *file, const void *buf, size_t co
rt_mutex_take(&file->vnode->lock, RT_WAITING_FOREVER);
count = _dfs_tmpfs_write(d_file, buf, count, pos);
-
+ file->vnode->size = d_file->size;
rt_mutex_release(&file->vnode->lock);
return count;