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

Staging: lustre: statahead: Remove ll_sa_entry_unhashed wrapper

Remove the function ll_sa_entry_unhashed() and replace all its calls
with the function list_empty() that it wrapped.
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8cdce485
...@@ -87,11 +87,6 @@ struct ll_sa_entry { ...@@ -87,11 +87,6 @@ struct ll_sa_entry {
static unsigned int sai_generation; static unsigned int sai_generation;
static DEFINE_SPINLOCK(sai_generation_lock); static DEFINE_SPINLOCK(sai_generation_lock);
static inline int ll_sa_entry_unhashed(struct ll_sa_entry *entry)
{
return list_empty(&entry->se_hash);
}
/* /*
* The entry only can be released by the caller, it is necessary to hold lock. * The entry only can be released by the caller, it is necessary to hold lock.
*/ */
...@@ -331,7 +326,7 @@ static void ll_sa_entry_put(struct ll_statahead_info *sai, ...@@ -331,7 +326,7 @@ static void ll_sa_entry_put(struct ll_statahead_info *sai,
LASSERT(list_empty(&entry->se_link)); LASSERT(list_empty(&entry->se_link));
LASSERT(list_empty(&entry->se_list)); LASSERT(list_empty(&entry->se_list));
LASSERT(ll_sa_entry_unhashed(entry)); LASSERT(list_empty(&entry->se_hash));
ll_sa_entry_cleanup(sai, entry); ll_sa_entry_cleanup(sai, entry);
iput(entry->se_inode); iput(entry->se_inode);
...@@ -346,7 +341,7 @@ do_sa_entry_fini(struct ll_statahead_info *sai, struct ll_sa_entry *entry) ...@@ -346,7 +341,7 @@ do_sa_entry_fini(struct ll_statahead_info *sai, struct ll_sa_entry *entry)
{ {
struct ll_inode_info *lli = ll_i2info(sai->sai_inode); struct ll_inode_info *lli = ll_i2info(sai->sai_inode);
LASSERT(!ll_sa_entry_unhashed(entry)); LASSERT(!list_empty(&entry->se_hash));
LASSERT(!list_empty(&entry->se_link)); LASSERT(!list_empty(&entry->se_link));
ll_sa_entry_unhash(sai, entry); ll_sa_entry_unhash(sai, entry);
......
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