From patchwork Thu Mar 3 17:29:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Magenheimer X-Patchwork-Id: 606541 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 p23HUaZk009908 for ; Thu, 3 Mar 2011 17:30:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758477Ab1CCR3z (ORCPT ); Thu, 3 Mar 2011 12:29:55 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:26099 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758201Ab1CCR3y convert rfc822-to-8bit (ORCPT ); Thu, 3 Mar 2011 12:29:54 -0500 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p23HTXEa009609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 Mar 2011 17:29:34 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p23HR2lC027262; Thu, 3 Mar 2011 17:29:31 GMT Received: from abhmt020.oracle.com by acsmt353.oracle.com with ESMTP id 1055461221299173370; Thu, 03 Mar 2011 09:29:30 -0800 MIME-Version: 1.0 Message-ID: <763a2305-27c6-4f44-8962-db72b434c037@default> Date: Thu, 3 Mar 2011 09:29:04 -0800 (PST) From: Dan Magenheimer To: Minchan Kim Cc: Matt , gregkh@suse.de, Chris Mason , linux-kernel@vger.kernel.org, linux-mm@kvack.org, ngupta@vflare.org, linux-btrfs@vger.kernel.org, Josef Bacik , Dan Rosenberg , Yan Zheng , miaox@cn.fujitsu.com, Li Zefan Subject: RE: [PATCH V2 0/3] drivers/staging: zcache: dynamic page cache/swap compression References: <20110207032407.GA27404@ca-server1.us.oracle.com> <1ddd01a8-591a-42bc-8bb3-561843b31acb@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.4.1.0 (410211) [OL 12.0.6550.5003] X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4D6FCFFC.01E5,ss=1,fgs=0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@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]); Thu, 03 Mar 2011 17:30:37 +0000 (UTC) diff -Napur -X linux-2.6.37.1/Documentation/dontdiff linux-2.6.37.1/mm/cleancache.c linux-2.6.37.1-fix/mm/cleancache.c --- linux-2.6.37.1/mm/cleancache.c 2011-02-25 11:38:47.000000000 -0800 +++ linux-2.6.37.1-fix/mm/cleancache.c 2011-02-25 08:53:46.000000000 -0800 @@ -78,15 +78,14 @@ static int cleancache_get_key(struct ino int (*fhfn)(struct dentry *, __u32 *fh, int *, int); int maxlen = CLEANCACHE_KEY_MAX; struct super_block *sb = inode->i_sb; - struct dentry *d; key->u.ino = inode->i_ino; if (sb->s_export_op != NULL) { fhfn = sb->s_export_op->encode_fh; if (fhfn) { - d = list_first_entry(&inode->i_dentry, - struct dentry, d_alias); - (void)(*fhfn)(d, &key->u.fh[0], &maxlen, 0); + struct dentry d; + d.d_inode = inode; + (void)(*fhfn)(&d, &key->u.fh[0], &maxlen, 0); if (maxlen > CLEANCACHE_KEY_MAX) return -1; }