Subversion Repositories HelenOS

Rev

Rev 2679 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2679 Rev 2681
Line 33... Line 33...
33
/**
33
/**
34
 * @file    vfs_unlink.c
34
 * @file    vfs_unlink.c
35
 * @brief
35
 * @brief
36
 */
36
 */
37
 
37
 
38
#include <atomic.h>
38
#include <rwlock.h>
39
#include <futex.h>
-
 
40
 
39
 
41
/**
40
/**
42
 * This futex prevents the race between a triplet-to-VFS-node resolution and a
41
 * This rwlock prevents the race between a triplet-to-VFS-node resolution and a
43
 * concurrent VFS operation which modifies the file system namespace.
42
 * concurrent VFS operation which modifies the file system namespace.
44
 */
43
 */
45
atomic_t namespace_futex = FUTEX_INITIALIZER;
44
RWLOCK_INITIALIZE(namespace_rwlock);
46
 
45
 
47
/**
46
/**
48
 * @}
47
 * @}
49
 */
48
 */