mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge PR #26460 into master
* refs/pull/26460/head: client: parameter "cap" is not used Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
commit
8a85bd2731
@ -3958,7 +3958,7 @@ void Client::_flushed(Inode *in)
|
||||
|
||||
|
||||
// checks common to add_update_cap, handle_cap_grant
|
||||
void Client::check_cap_issue(Inode *in, Cap *cap, unsigned issued)
|
||||
void Client::check_cap_issue(Inode *in, unsigned issued)
|
||||
{
|
||||
unsigned had = in->caps_issued();
|
||||
|
||||
@ -4022,7 +4022,7 @@ void Client::add_update_cap(Inode *in, MetaSession *mds_session, uint64_t cap_id
|
||||
}
|
||||
}
|
||||
|
||||
check_cap_issue(in, &cap, issued);
|
||||
check_cap_issue(in, issued);
|
||||
|
||||
if (flags & CEPH_CAP_FLAG_AUTH) {
|
||||
if (in->auth_cap != &cap &&
|
||||
@ -5162,7 +5162,7 @@ void Client::handle_cap_grant(MetaSession *session, Inode *in, Cap *cap, const M
|
||||
cap->seq = m->get_seq();
|
||||
cap->gen = session->cap_gen;
|
||||
|
||||
check_cap_issue(in, cap, new_caps);
|
||||
check_cap_issue(in, new_caps);
|
||||
|
||||
// update inode
|
||||
int issued;
|
||||
|
@ -642,7 +642,7 @@ public:
|
||||
int uninline_data(Inode *in, Context *onfinish);
|
||||
|
||||
// file caps
|
||||
void check_cap_issue(Inode *in, Cap *cap, unsigned issued);
|
||||
void check_cap_issue(Inode *in, unsigned issued);
|
||||
void add_update_cap(Inode *in, MetaSession *session, uint64_t cap_id,
|
||||
unsigned issued, unsigned wanted, unsigned seq, unsigned mseq,
|
||||
inodeno_t realm, int flags, const UserPerm& perms);
|
||||
|
Loading…
Reference in New Issue
Block a user