This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 46aaa10da85 fs/vfs: pass readonly to foreach_inode() in sync()
46aaa10da85 is described below

commit 46aaa10da85b8fa6626be001bf4da57e7c3b2adf
Author: jingfei <[email protected]>
AuthorDate: Thu Nov 19 18:38:22 2026 +0800

    fs/vfs: pass readonly to foreach_inode() in sync()
    
    foreach_inode() gained a readonly argument while sync() was being
    moved to fs_sync.c, and the two changes were merged independently,
    so sync() still calls it with two arguments and the build fails.
    
    Pass true: the syncfs walk only visits inodes and needs the read
    lock, as it took before.
    
    Signed-off-by: jingfei <[email protected]>
---
 fs/vfs/fs_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/vfs/fs_sync.c b/fs/vfs/fs_sync.c
index 06e0748d131..c856ebd2bb4 100644
--- a/fs/vfs/fs_sync.c
+++ b/fs/vfs/fs_sync.c
@@ -121,6 +121,6 @@ void sync(void)
   nxsched_foreach(task_fssync, NULL);
 
 #ifndef CONFIG_DISABLE_MOUNTPOINT
-  foreach_inode(mountpt_syncfs, NULL);
+  foreach_inode(mountpt_syncfs, NULL, true);
 #endif
 }

Reply via email to