From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1798017984; Tue, 18 Jun 2024 05:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718689987; cv=none; b=RCLZQrfbRNBhuXwqDnxtxuTSsmnz8+PxAtu5/fBCHQv1d4z+dZI0iXyJi9arNxIqXkKS7C2Cp7gyP+lGz52HxYeTdqN2sRNWx0S1zDGLEKSd0Vj/wky7QkwlFBwQGL/Rj5R+lIsrosYdeTEalQmQThMcJXPYGCx+kDRdqijaCqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718689987; c=relaxed/simple; bh=sktL/BLxmNsYl1jUrsHkZjhWX7xL7+ulpULuMFjkhXc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FAMp/1E88+YkrAuQX7XUrsqXjSe2PMOpgq/p5K8RAegFwtLrAR+IQjU0FlY5NsGNhkn7x9pp8aD0kzXLNYDfVvyWv22C2e+6VvpfdDkUWBCX9eVlZAdX34pFzE+gfhq16gPqela9JghSzE2BDGtcGf9ysqxnXdXbmk+GgYeADtk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id CB33E67373; Tue, 18 Jun 2024 07:52:53 +0200 (CEST) Date: Tue, 18 Jun 2024 07:52:53 +0200 From: Christoph Hellwig To: Barry Song <21cnbao@gmail.com> Cc: Christoph Hellwig , Andrew Morton , Trond Myklebust , Anna Schumaker , Steve French , linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-mm@kvack.org, Barry Song , Ryan Roberts Subject: Re: [PATCH] nfs: fix nfs_swap_rw for large-folio swap Message-ID: <20240618055253.GA27945@lst.de> References: <20240614100329.1203579-1-hch@lst.de> <20240614100329.1203579-2-hch@lst.de> <20240614112148.cd1961e84b736060c54bdf26@linux-foundation.org> <20240616085436.GA28058@lst.de> <20240617053201.GA16852@lst.de> Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Jun 17, 2024 at 08:02:47PM +1200, Barry Song wrote: > I did everything the same as above, > but always got failure at the last step to swapon: > /mnt/test # swapon swapfile > swapon: /mnt/test/swapfile: swapon failed: Invalid argument You are probably missing CONFIG_NFS_SWAP=y in your .config.