Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ee6b272b
Commit
ee6b272b
authored
Jun 10, 2010
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: drop unused argument
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
2962507c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
fs/ceph/caps.c
fs/ceph/caps.c
+1
-1
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+4
-6
fs/ceph/mds_client.h
fs/ceph/mds_client.h
+1
-2
No files found.
fs/ceph/caps.c
View file @
ee6b272b
...
...
@@ -2717,7 +2717,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
* along for the mds (who clearly thinks we still have this
* cap).
*/
ceph_add_cap_releases
(
mdsc
,
session
,
-
1
);
ceph_add_cap_releases
(
mdsc
,
session
);
ceph_send_cap_releases
(
mdsc
,
session
);
goto
done
;
}
...
...
fs/ceph/mds_client.c
View file @
ee6b272b
...
...
@@ -1067,15 +1067,13 @@ static int trim_caps(struct ceph_mds_client *mdsc,
* Called under s_mutex.
*/
int
ceph_add_cap_releases
(
struct
ceph_mds_client
*
mdsc
,
struct
ceph_mds_session
*
session
,
int
extra
)
struct
ceph_mds_session
*
session
)
{
struct
ceph_msg
*
msg
;
struct
ceph_mds_cap_release
*
head
;
int
err
=
-
ENOMEM
;
int
extra
=
mdsc
->
client
->
mount_args
->
cap_release_safety
;
if
(
extra
<
0
)
extra
=
mdsc
->
client
->
mount_args
->
cap_release_safety
;
spin_lock
(
&
session
->
s_cap_lock
);
...
...
@@ -2005,7 +2003,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
}
mutex_unlock
(
&
mdsc
->
mutex
);
ceph_add_cap_releases
(
mdsc
,
req
->
r_session
,
-
1
);
ceph_add_cap_releases
(
mdsc
,
req
->
r_session
);
mutex_unlock
(
&
session
->
s_mutex
);
/* kick calling process */
...
...
@@ -2715,7 +2713,7 @@ static void delayed_work(struct work_struct *work)
send_renew_caps
(
mdsc
,
s
);
else
ceph_con_keepalive
(
&
s
->
s_con
);
ceph_add_cap_releases
(
mdsc
,
s
,
-
1
);
ceph_add_cap_releases
(
mdsc
,
s
);
if
(
s
->
s_state
==
CEPH_MDS_SESSION_OPEN
||
s
->
s_state
==
CEPH_MDS_SESSION_HUNG
)
ceph_send_cap_releases
(
mdsc
,
s
);
...
...
fs/ceph/mds_client.h
View file @
ee6b272b
...
...
@@ -324,8 +324,7 @@ static inline void ceph_mdsc_put_request(struct ceph_mds_request *req)
}
extern
int
ceph_add_cap_releases
(
struct
ceph_mds_client
*
mdsc
,
struct
ceph_mds_session
*
session
,
int
extra
);
struct
ceph_mds_session
*
session
);
extern
void
ceph_send_cap_releases
(
struct
ceph_mds_client
*
mdsc
,
struct
ceph_mds_session
*
session
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment