From dabd2355f355abd7d1d58641f6cc496adb1482d1 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Mar 2015 12:56:22 +0100 Subject: Add mutexes everywhere ; spam debug log (sorry) --- src/kernel/include/vfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/include') diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h index 226f962..8f09d7f 100644 --- a/src/kernel/include/vfs.h +++ b/src/kernel/include/vfs.h @@ -55,6 +55,7 @@ typedef struct fs_handle { struct fs_node *node; int refs; + mutex_t lock; int mode; @@ -125,6 +126,8 @@ typedef struct { typedef struct fs { // Filled by VFS's make_fs() int refs; + mutex_t lock; + struct fs *from_fs; int ok_modes; // Filled by FS's specific make() - all zero in the case of a subfs -- cgit v1.2.3