All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guangliang Zhao <lucienchao@gmail.com>
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	[thread overview]
Message-ID: <1392355784-10422-2-git-send-email-lucienchao@gmail.com> (raw)
In-Reply-To: <1392355784-10422-1-git-send-email-lucienchao@gmail.com>

Signed-off-by: Guangliang Zhao <lucienchao@gmail.com>
---
 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 <linux/wait.h>
 #include <linux/writeback.h>
 #include <linux/slab.h>
+#include <linux/posix_acl.h>
 
 #include <linux/ceph/libceph.h>
 
@@ -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
 
-- 
1.7.9.5


  reply	other threads:[~2014-02-14  5:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  5:29 [PATCH 0/3] several misc patches Guangliang Zhao
2014-02-14  5:29 ` Guangliang Zhao [this message]
2014-02-14 12:29   ` [PATCH 1/3] ceph: make ceph_forget_all_cached_acls() static inline Alex Elder
2014-02-16 18:27     ` Sage Weil
2014-02-14  5:29 ` [PATCH 2/3] ceph: add acl, noacl options for cephfs mount Guangliang Zhao
2014-02-14 13:00   ` Alex Elder
2014-02-16 18:26     ` Sage Weil
2014-02-17 14:27       ` Guangliang Zhao
2014-02-18  0:08       ` Alex Elder
2014-02-14  5:29 ` [PATCH 3/3] ceph: make ceph ACL for symlink inheritable Guangliang Zhao
2014-02-14 13:06   ` Alex Elder
2014-02-16 18:27     ` Sage Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1392355784-10422-2-git-send-email-lucienchao@gmail.com \
    --to=lucienchao@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.