+static u64
+blob_size(const struct blob_descriptor *blob)
+{
+ if (!blob)
+ return 0;
+ return blob->size;
+}
+
+static u64
+blob_stored_size(const struct blob_descriptor *blob)
+{
+ if (!blob)
+ return 0;
+ if (blob->blob_location == BLOB_IN_WIM &&
+ blob->size == blob->rdesc->uncompressed_size)
+ return blob->rdesc->size_in_wim;
+ return blob->size;
+}
+