]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: remove libxfs_physmem
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Nov 2019 20:38:35 +0000 (16:38 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 1 Nov 2019 20:38:35 +0000 (16:38 -0400)
Remove this thin wrapper too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/libxfs.h
libxfs/init.c
repair/xfs_repair.c

index 405572eee71dcbba7e1d5cb8b0d95a8486a1ad82..0cc0820b5da3b0fbe2d25a4cffee9b4d8bd330fd 100644 (file)
@@ -160,9 +160,6 @@ extern void cmn_err(int, char *, ...);
 enum ce { CE_DEBUG, CE_CONT, CE_NOTE, CE_WARN, CE_ALERT, CE_PANIC };
 #endif
 
-
-extern unsigned long   libxfs_physmem(void);   /* in kilobytes */
-
 #include "xfs_ialloc.h"
 
 #include "xfs_attr_leaf.h"
index 9e7624353ba201cc03e4c5ad1007181bda7871d1..537b73bd96de971094887d5499825cca4494182d 100644 (file)
@@ -852,9 +852,3 @@ libxfs_report(FILE *fp)
        c = asctime(localtime(&t));
        fprintf(fp, "%s", c);
 }
-
-unsigned long
-libxfs_physmem(void)
-{
-       return platform_physmem();
-}
index 7e810ef46521211c75b5f22f9983d3eae131f20a..df65b6c586e19a12a9eb6e313b26c04fad007747 100644 (file)
@@ -852,7 +852,7 @@ main(int argc, char **argv)
                                        (mp->m_sb.sb_dblocks >> (10 + 1)) +
                                        50000;  /* rough estimate of 50MB overhead */
                max_mem = max_mem_specified ? max_mem_specified * 1024 :
-                                               libxfs_physmem() * 3 / 4;
+                                             platform_physmem() * 3 / 4;
 
                if (getrlimit(RLIMIT_AS, &rlim) != -1 &&
                                        rlim.rlim_cur != RLIM_INFINITY) {