From patchwork Wed Mar 2 23:19:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jovi zhang X-Patchwork-Id: 611901 X-Patchwork-Delegate: Trond.Myklebust@netapp.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p259Rvt2030464 for ; Sat, 5 Mar 2011 09:27:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751109Ab1CEJ1z (ORCPT ); Sat, 5 Mar 2011 04:27:55 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:50123 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069Ab1CEJ1y (ORCPT ); Sat, 5 Mar 2011 04:27:54 -0500 Received: by iwn34 with SMTP id 34so2578641iwn.19 for ; Sat, 05 Mar 2011 01:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=7ithuCcovYxt1JQAB0RJSwflgilt4vPYRRbPTLrNkUc=; b=hHitr/y8/bIsZ+mCuA4YCDhs9wmjKT2YEijTRzCgl+tFvt5imTcLIoz/dC2eQNhpwF Z6Z+GKTCYZsIqREd2AHs8X2TCGdFNyqqEBoHQQRfp79zBn8L22yDZGADcxtKVf5wJPuE Jnac9IM8YfTxIoNZlo7Y7tLfh5WQ3Wm0k4OJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=C8IAEA3Q5pAxtIx+UixYe6OBm0nhi9LhqZco093mwCgEo59BtpE/c/sbdV5iVLdMRL AoA+wJaCwQ4Pp31E0pxgdIfq6S0gHighGAlwSw677qhsjoHTi5+WbrfszUzXHUNj5mhd VD0n9O61ODJ2nyyteZmR++Lo2P+dg6Km++p1g= Received: by 10.42.246.71 with SMTP id lx7mr1842737icb.351.1299317273660; Sat, 05 Mar 2011 01:27:53 -0800 (PST) Received: from localhost.localdomain ([122.224.228.133]) by mx.google.com with ESMTPS id 8sm393720iba.4.2011.03.05.01.27.47 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Mar 2011 01:27:52 -0800 (PST) From: bookjovi@gmail.com To: bookjovi@gmail.com Cc: Trond Myklebust (maintainer:NFS, SUNRPC, AND...), linux-nfs@vger.kernel.org (open list:NFS, SUNRPC, AND...), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] nfs: fix compilation warning Date: Wed, 2 Mar 2011 18:19:37 -0500 Message-Id: <1299107978-3248-1-git-send-email-bookjovi@gmail.com> X-Mailer: git-send-email 1.7.2.3 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 05 Mar 2011 09:27:58 +0000 (UTC) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1ff76ac..c7eb4ee 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3262,7 +3262,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen, spages = pages; do { - len = min(PAGE_CACHE_SIZE, buflen); + len = min((size_t)PAGE_CACHE_SIZE, buflen); newpage = alloc_page(GFP_KERNEL); if (newpage == NULL)