Project

General

Profile

Actions

Feature #545

closed

mds: use bloom filter to supplement dirfrag COMPLETE flag

Added by Sage Weil over 13 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Currently we need the complete flag (or a cached negative dentry) to conclude a name does not exist in a frag before we can create it. This means that (especially for large dirs) once a single dentry is trimmed, we need to reload the whole dir when we have a miss.

We should supplement the complete flag with a bloom filter (which gives false positives but never false negatives), and add trimmed/released items to the filter. If a bloom filter check gives a false, we know the item was never trimmed, and can safely instantiate it.

Actions

Also available in: Atom PDF