Skip to content

Commit 639a39d

Browse files
MichaelCuevasmeta-codesync[bot]
authored andcommitted
Remove redundant MADV_POPULATE_READ from MappedDiskVector
Summary: MADV_POPULATE_WRITE subsumes MADV_POPULATE_READ: a write fault reads the page from disk before marking it dirty, so it catches the same I/O errors (corruption, missing extents) that POPULATE_READ detects. Since the constructor already calls populateForWrite over the full mapping region, the earlier POPULATE_READ call is redundant. This also removes the now-unused `shouldPopulate` / `populate` parameter from `open()` and the private constructor—it existed solely to control the POPULATE_READ call. Reviewed By: genevievehelsel Differential Revision: D99742007 fbshipit-source-id: f6d4f54df60ba4ab0bdc701b150dc0da00de2203
1 parent 2afed30 commit 639a39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eden/fs/inodes/InodeTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class InodeTable {
9999
EdenStatsPtr stats) {
100100
return std::unique_ptr<InodeTable>{new InodeTable{
101101
MappedDiskVector<Entry>::template open<
102-
detail::InodeTableEntry<OldRecords>...>(path, true),
102+
detail::InodeTableEntry<OldRecords>...>(path),
103103
std::move(stats)}};
104104
}
105105

0 commit comments

Comments
 (0)