Commit 946d6f95 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

Staging: lustre: ldlm_pool: Drop wrapper function

Remove the function ldlm_pool_get_limit() and replace its calls with the
function it wrapped.
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Acked-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7c37abe0
...@@ -207,14 +207,6 @@ static inline int ldlm_pool_t2gsp(unsigned int t) ...@@ -207,14 +207,6 @@ static inline int ldlm_pool_t2gsp(unsigned int t)
(t >> LDLM_POOL_GSP_STEP_SHIFT)); (t >> LDLM_POOL_GSP_STEP_SHIFT));
} }
/**
* Returns current \a pl limit.
*/
static __u32 ldlm_pool_get_limit(struct ldlm_pool *pl)
{
return atomic_read(&pl->pl_limit);
}
/** /**
* Sets passed \a limit to \a pl. * Sets passed \a limit to \a pl.
*/ */
...@@ -452,7 +444,7 @@ static int lprocfs_pool_state_seq_show(struct seq_file *m, void *unused) ...@@ -452,7 +444,7 @@ static int lprocfs_pool_state_seq_show(struct seq_file *m, void *unused)
spin_lock(&pl->pl_lock); spin_lock(&pl->pl_lock);
slv = pl->pl_server_lock_volume; slv = pl->pl_server_lock_volume;
clv = pl->pl_client_lock_volume; clv = pl->pl_client_lock_volume;
limit = ldlm_pool_get_limit(pl); limit = atomic_read(&pl->pl_limit);
granted = atomic_read(&pl->pl_granted); granted = atomic_read(&pl->pl_granted);
grant_rate = atomic_read(&pl->pl_grant_rate); grant_rate = atomic_read(&pl->pl_grant_rate);
cancel_rate = atomic_read(&pl->pl_cancel_rate); cancel_rate = atomic_read(&pl->pl_cancel_rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment