/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | DataContainer.h | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|
H A D | DataContainer.cpp | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|
H A D | Jamfile | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|
H A D | kernel_interface.cpp | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|
/haiku/src/tests/system/kernel/ |
H A D | mmap_cut_tests.cpp | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|
/haiku/src/system/kernel/vm/ |
H A D | VMAnonymousNoSwapCache.h | c0a12a6b7d697382511ff36e7815aad6a379b3a7 Wed Aug 14 22:35:37 UTC 2024 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use VMVnodeCache here because that is a non-"temporary" cache that writes its pages back to disk, while we need a store for the pages that won't discard unmodified ones when memory is low.
Add a close() to the mmap_cut_tests, which triggers the case where this is important (a file is unlinked, mmap'ed, and then the lone FD referring to it is closed, triggering the file's deletion unless the mmap also acquired a reference to the vnode.)
Fixes KDLs with Firefox test builds.
|