FAT: Remove some unneeded locks.
Noticed by PulkoMandy in review on 4725.
This commit is contained in:
@@ -42,8 +42,6 @@ dosfs_open_attrdir(fs_volume *_vol, fs_vnode *_node, void **_cookie)
|
||||
|
||||
DPRINTF(0, ("dosfs_open_attrdir called\n"));
|
||||
|
||||
RecursiveLocker lock(vol->vlock);
|
||||
|
||||
if ((*_cookie = malloc(sizeof(uint32))) == NULL) {
|
||||
return ENOMEM;
|
||||
}
|
||||
@@ -60,8 +58,6 @@ dosfs_close_attrdir(fs_volume *_vol, fs_vnode *_node, void *_cookie)
|
||||
|
||||
DPRINTF(0, ("dosfs_close_attrdir called\n"));
|
||||
|
||||
RecursiveLocker lock(vol->vlock);
|
||||
|
||||
*(int32 *)_cookie = 1;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user