mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
sys_fs: improve sys_fs_lsn_lock
It appears it does nothing only on /dev_hdd0 or /host_root (HOSTFS).
This commit is contained in:
parent
fc6356a74c
commit
8447d75dda
1 changed files with 9 additions and 2 deletions
|
@ -1838,7 +1838,13 @@ error_code sys_fs_lsn_lock(ppu_thread& ppu, u32 fd)
|
|||
return CELL_EBADF;
|
||||
}
|
||||
|
||||
// TODO: seems to do nothing
|
||||
// TODO: seems to do nothing on /dev_hdd0 or /host_root
|
||||
if (file->mp == &g_mp_sys_dev_hdd0 || file->mp->flags & lv2_mp_flag::strict_get_block_size)
|
||||
{
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
file->lock.compare_and_swap(0, 1);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
@ -1853,7 +1859,8 @@ error_code sys_fs_lsn_unlock(ppu_thread& ppu, u32 fd)
|
|||
return CELL_EBADF;
|
||||
}
|
||||
|
||||
// TODO: seems to do nothing
|
||||
// Unlock unconditionally
|
||||
file->lock.compare_and_swap(1, 0);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue