Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934485AbZLPCAw (ORCPT ); Tue, 15 Dec 2009 21:00:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934469AbZLPCAu (ORCPT ); Tue, 15 Dec 2009 21:00:50 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:50942 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S934464AbZLPCAt (ORCPT ); Tue, 15 Dec 2009 21:00:49 -0500 Message-ID: <4B283F40.5080706@cn.fujitsu.com> Date: Wed, 16 Dec 2009 10:00:32 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: "Kirill A. Shutemov" CC: containers@lists.linux-foundation.org, linux-mm@kvack.org, Paul Menage , Andrew Morton , KAMEZAWA Hiroyuki , Balbir Singh , Pavel Emelyanov , Dan Malek , Vladislav Buzov , Daisuke Nishimura , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v2 1/4] cgroup: implement eventfd-based generic API for notifications References: <4B283B7F.2050403@cn.fujitsu.com> In-Reply-To: <4B283B7F.2050403@cn.fujitsu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 548 Lines: 17 >> +/* >> + * Check if a file is a control file >> + */ >> +static inline struct cftype *__file_cft(struct file *file) >> +{ >> + if (file->f_dentry->d_inode->i_fop != &cgroup_file_operations) >> + return ERR_PTR(-EINVAL); > > I don't think this check is needed. > Sorry, please ignore this comment -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/