Thread (33 messages) 33 messages, 10 authors, 2023-02-03

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-03-09 16:30:53
Also in: dri-devel, linux-fsdevel, linuxppc-dev, lkml

On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote:
quoted hunk ↗ jump to hunk
Just use the generic anon_inode file system.

Signed-off-by: Christoph Hellwig <hch@lst.de>
 arch/powerpc/platforms/pseries/cmm.c | 27 ++-------------------------
 1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c
index 6d36b858b14df1..9d07e6bea7126c 100644
+++ b/arch/powerpc/platforms/pseries/cmm.c
@@ -6,6 +6,7 @@
  * Author(s): Brian King (brking@linux.vnet.ibm.com),
  */
 
+#include <linux/anon_inodes.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
@@ -502,19 +503,6 @@ static struct notifier_block cmm_mem_nb = {
 };
 
 #ifdef CONFIG_BALLOON_COMPACTION
-static struct vfsmount *balloon_mnt;
-
-static int cmm_init_fs_context(struct fs_context *fc)
-{
-	return init_pseudo(fc, PPC_CMM_MAGIC) ? 0 : -ENOMEM;
Should we clean these unusued magic constants too?

include/uapi/linux/magic.h:#define PPC_CMM_MAGIC                0xc7571590

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help