Skip to content

Commit

Permalink
ceph: make ceph_forget_all_cached_acls() static inline
Browse files Browse the repository at this point in the history
Signed-off-by: Guangliang Zhao <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
glzhao authored and Sage Weil committed Feb 17, 2014
1 parent b20a95a commit c969d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions fs/ceph/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion fs/ceph/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -743,7 +744,11 @@ extern const struct xattr_handler *ceph_xattr_handlers[];
struct posix_acl *ceph_get_acl(struct inode *, int);
int ceph_set_acl(struct inode *inode, struct posix_acl *acl, int type);
int ceph_init_acl(struct dentry *, struct inode *, 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

Expand Down

0 comments on commit c969d9b

Please sign in to comment.