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

Staging: lustre: statahead: Remove sa_first_received_entry wrapper

Remove the function sa_first_received_entry() and replace all its calls
with the function list_entry() that it wraps.
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0d14255
...@@ -133,13 +133,6 @@ static inline int agl_should_run(struct ll_statahead_info *sai, ...@@ -133,13 +133,6 @@ static inline int agl_should_run(struct ll_statahead_info *sai,
return (inode != NULL && S_ISREG(inode->i_mode) && sai->sai_agl_valid); return (inode != NULL && S_ISREG(inode->i_mode) && sai->sai_agl_valid);
} }
static inline struct ll_sa_entry *
sa_first_received_entry(struct ll_statahead_info *sai)
{
return list_entry(sai->sai_entries_received.next,
struct ll_sa_entry, se_list);
}
static inline struct ll_inode_info * static inline struct ll_inode_info *
agl_first_entry(struct ll_statahead_info *sai) agl_first_entry(struct ll_statahead_info *sai)
{ {
...@@ -620,7 +613,8 @@ static void ll_post_statahead(struct ll_statahead_info *sai) ...@@ -620,7 +613,8 @@ static void ll_post_statahead(struct ll_statahead_info *sai)
spin_unlock(&lli->lli_sa_lock); spin_unlock(&lli->lli_sa_lock);
return; return;
} }
entry = sa_first_received_entry(sai); entry = list_entry(sai->sai_entries_received.next,
struct ll_sa_entry, se_list);
atomic_inc(&entry->se_refcount); atomic_inc(&entry->se_refcount);
list_del_init(&entry->se_list); list_del_init(&entry->se_list);
spin_unlock(&lli->lli_sa_lock); spin_unlock(&lli->lli_sa_lock);
......
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