chiark / gitweb /
journald: invoking fstatvfs() is now redundant in the vacuuming code
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Jun 2014 16:59:30 +0000 (18:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jun 2014 17:35:57 +0000 (19:35 +0200)
src/journal/journal-vacuum.c

index 086b40f..891b6bb 100644 (file)
@@ -292,13 +292,6 @@ int journal_directory_vacuum(
         qsort_safe(list, n_list, sizeof(struct vacuum_info), vacuum_compare);
 
         for (i = 0; i < n_list; i++) {
-                struct statvfs ss;
-
-                if (fstatvfs(dirfd(d), &ss) < 0) {
-                        r = -errno;
-                        goto finish;
-                }
-
                 if ((max_retention_usec <= 0 || list[i].realtime >= retention_limit) &&
                     (max_use <= 0 || sum <= max_use))
                         break;