diff options
Diffstat (limited to 'fs/configfs/dir.c')
-rw-r--r-- | fs/configfs/dir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 2619f485bc3d..a08e5c2f25e8 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -37,10 +37,11 @@ | |||
37 | DECLARE_RWSEM(configfs_rename_sem); | 37 | DECLARE_RWSEM(configfs_rename_sem); |
38 | /* | 38 | /* |
39 | * Protects mutations of configfs_dirent linkage together with proper i_mutex | 39 | * Protects mutations of configfs_dirent linkage together with proper i_mutex |
40 | * Also protects mutations of symlinks linkage to target configfs_dirent | ||
40 | * Mutators of configfs_dirent linkage must *both* have the proper inode locked | 41 | * Mutators of configfs_dirent linkage must *both* have the proper inode locked |
41 | * and configfs_dirent_lock locked, in that order. | 42 | * and configfs_dirent_lock locked, in that order. |
42 | * This allows one to safely traverse configfs_dirent trees without having to | 43 | * This allows one to safely traverse configfs_dirent trees and symlinks without |
43 | * lock inodes. | 44 | * having to lock inodes. |
44 | */ | 45 | */ |
45 | DEFINE_SPINLOCK(configfs_dirent_lock); | 46 | DEFINE_SPINLOCK(configfs_dirent_lock); |
46 | 47 | ||