adoroszlai commented on code in PR #7927:
URL: https://github.com/apache/ozone/pull/7927#discussion_r1967155166


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/VolumeUsage.java:
##########
@@ -94,19 +97,8 @@ public void decrementUsedSpace(long reclaimedSpace) {
     source.decrementUsedSpace(reclaimedSpace);
   }
 
-  /**
-   * Get the space used by others except hdds.
-   * DU is refreshed periodically and could be not exact,
-   * so there could be that DU value > totalUsed when there are deletes.
-   * @return other used space
-   */
-  private static long getOtherUsed(SpaceUsageSource usage) {
-    long totalUsed = usage.getCapacity() - usage.getAvailable();
-    return Math.max(totalUsed - usage.getUsedSpace(), 0L);
-  }
-
-  private long getRemainingReserved(SpaceUsageSource usage) {
-    return Math.max(reservedInBytes - getOtherUsed(usage), 0L);
+  private static long getUsableCapacity(SpaceUsageSource usage) {
+    return usage.getUsedSpace() + usage.getAvailable();

Review Comment:
   This method is unused.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to