Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 671762f8 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Ilya Dryomov
Browse files

ceph: acl: Remove unused function



Remove the function ceph_get_cached_acl() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: default avatarYan, Zheng <zyan@redhat.com>
parent 3a25cf43
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -40,20 +40,6 @@ static inline void ceph_set_cached_acl(struct inode *inode,
	spin_unlock(&ci->i_ceph_lock);
}

static inline struct posix_acl *ceph_get_cached_acl(struct inode *inode,
							int type)
{
	struct ceph_inode_info *ci = ceph_inode(inode);
	struct posix_acl *acl = ACL_NOT_CACHED;

	spin_lock(&ci->i_ceph_lock);
	if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 0))
		acl = get_cached_acl(inode, type);
	spin_unlock(&ci->i_ceph_lock);

	return acl;
}

struct posix_acl *ceph_get_acl(struct inode *inode, int type)
{
	int size;