-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd/osd_types: skip encoding newer object_info_t fields if they are u…
…nused This reduces the size of the encoded object_info_t in most cases, enough to get us under the 255 byte limit for a single inline xattr in XFS. Note that we lose the local_mtime, but that this field is only important for objects in the cache pool. Note that we drop the unconditional clearing of the digest flags if the encoding was old; this was not strictly correct anyway. And now that we may encode the old way with FLAG_OMAP_DIGEST, we need to leave it set (and force the value to -1). Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters