From patchwork Fri Feb 14 05:29:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guangliang Zhao X-Patchwork-Id: 3649991 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D0739F334 for ; Fri, 14 Feb 2014 05:29:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1B4820218 for ; Fri, 14 Feb 2014 05:29:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD27420213 for ; Fri, 14 Feb 2014 05:29:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926AbaBNF34 (ORCPT ); Fri, 14 Feb 2014 00:29:56 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:34878 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751740AbaBNF34 (ORCPT ); Fri, 14 Feb 2014 00:29:56 -0500 Received: by mail-pb0-f52.google.com with SMTP id jt11so11822814pbb.25 for ; Thu, 13 Feb 2014 21:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Me9NX0LBiuYtcScw1Fan2IumAQKB0SsbxkpqfCAlyYU=; b=cUYbBwqON1NsghFnLw5T4NLxKbmfU+pJBryJmC3uC8KLXr+VAd47I2cKIm0xtR6MUx Ifj6liSdIMk/x8AYzjIW67YzTNQ8eBMh9Tkkgcrx6Njfe8CeLv8e2ej7lLgRaZ4F30je uU2qnLAnmwuN9dmDC8TiWcXUHlPX/gRNuqVsls3DgKTVahTWHr0lLJAhgQAEFPGBZkDS eMbasJYDUmaE0SDpZ1BFTnOcZbbIZQpvruop70m8wH2usjlm4iWq+R+b3JMUfbvKc1HH HnYblmzFdxyXKA003/e8uSa5UW2J/vAS/PSt4qVqPN1A3qFXhOo/ZbstMLYgtFa/lEMh nDOQ== X-Received: by 10.68.2.99 with SMTP id 3mr6628541pbt.49.1392355795527; Thu, 13 Feb 2014 21:29:55 -0800 (PST) Received: from localhost ([118.194.208.131]) by mx.google.com with ESMTPSA id zc6sm31657290pab.18.2014.02.13.21.29.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 21:29:54 -0800 (PST) From: Guangliang Zhao To: ceph-devel@vger.kernel.org Cc: sage@inktank.com Subject: [PATCH 1/3] ceph: make ceph_forget_all_cached_acls() static inline Date: Fri, 14 Feb 2014 13:29:42 +0800 Message-Id: <1392355784-10422-2-git-send-email-lucienchao@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392355784-10422-1-git-send-email-lucienchao@gmail.com> References: <1392355784-10422-1-git-send-email-lucienchao@gmail.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Guangliang Zhao Reviewed-by: Alex Elder --- fs/ceph/acl.c | 5 ----- fs/ceph/super.h | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c index 64fddbc..48af0b3 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c @@ -54,11 +54,6 @@ static inline struct posix_acl *ceph_get_cached_acl(struct inode *inode, return acl; } -void ceph_forget_all_cached_acls(struct inode *inode) -{ - forget_all_cached_acls(inode); -} - struct posix_acl *ceph_get_acl(struct inode *inode, int type) { int size; diff --git a/fs/ceph/super.h b/fs/ceph/super.h index c299f7d..8851dc2 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -745,7 +746,10 @@ extern const struct xattr_handler *ceph_xattr_handlers[]; struct posix_acl *ceph_get_acl(struct inode *, int); int ceph_init_acl(struct dentry *, struct inode *, struct inode *); int ceph_acl_chmod(struct dentry *, struct inode *); -void ceph_forget_all_cached_acls(struct inode *inode); +static inline void ceph_forget_all_cached_acls(struct inode *inode) +{ + forget_all_cached_acls(inode); +} #else