All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: sandeen@sandeen.net, darrick.wong@oracle.com
Cc: linux-xfs@vger.kernel.org
Subject: [PATCH 3/4] libxfs: remove libxfs_physmem
Date: Tue, 22 Oct 2019 11:48:23 -0700	[thread overview]
Message-ID: <157177010343.1460186.15100646078363671205.stgit@magnolia> (raw)
In-Reply-To: <157177008495.1460186.12329293699422541895.stgit@magnolia>

From: Darrick J. Wong <darrick.wong@oracle.com>

Remove this thin wrapper too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 include/libxfs.h    |    3 ---
 libxfs/init.c       |    6 ------
 repair/xfs_repair.c |    2 +-
 3 files changed, 1 insertion(+), 10 deletions(-)


diff --git a/include/libxfs.h b/include/libxfs.h
index 405572ee..0cc0820b 100644
--- a/include/libxfs.h
+++ b/include/libxfs.h
@@ -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"
diff --git a/libxfs/init.c b/libxfs/init.c
index 9e762435..537b73bd 100644
--- a/libxfs/init.c
+++ b/libxfs/init.c
@@ -852,9 +852,3 @@ libxfs_report(FILE *fp)
 	c = asctime(localtime(&t));
 	fprintf(fp, "%s", c);
 }
-
-unsigned long
-libxfs_physmem(void)
-{
-	return platform_physmem();
-}
diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c
index 7e810ef4..df65b6c5 100644
--- a/repair/xfs_repair.c
+++ b/repair/xfs_repair.c
@@ -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) {


  parent reply	other threads:[~2019-10-22 18:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-22 18:48 [PATCH 0/4] libfrog: take over platform code headers Darrick J. Wong
2019-10-22 18:48 ` [PATCH 1/4] libfrog: clean up platform_nproc Darrick J. Wong
2019-11-01 20:35   ` Eric Sandeen
2019-10-22 18:48 ` [PATCH 2/4] libxfs: remove libxfs_nproc Darrick J. Wong
2019-11-01 20:35   ` Eric Sandeen
2019-10-22 18:48 ` Darrick J. Wong [this message]
2019-11-01 20:35   ` [PATCH 3/4] libxfs: remove libxfs_physmem Eric Sandeen
2019-10-22 18:48 ` [PATCH 4/4] libfrog: take over platform headers Darrick J. Wong
2019-11-01 20:36   ` Eric Sandeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=157177010343.1460186.15100646078363671205.stgit@magnolia \
    --to=darrick.wong@oracle.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sandeen@sandeen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.