提交 c7406249 编写于 作者: T Trond Myklebust

pNFS: Fix an unused variable warning in pnfs_roc_get_barrier

Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 c2126157
......@@ -1150,7 +1150,6 @@ void pnfs_roc_get_barrier(struct inode *ino, u32 *barrier)
{
struct nfs_inode *nfsi = NFS_I(ino);
struct pnfs_layout_hdr *lo;
nfs4_stateid stateid;
u32 current_seqid;
spin_lock(&ino->i_lock);
......@@ -1161,7 +1160,6 @@ void pnfs_roc_get_barrier(struct inode *ino, u32 *barrier)
* a barrier, we choose the worst-case barrier.
*/
*barrier = current_seqid + atomic_read(&lo->plh_outstanding);
stateid = lo->plh_stateid;
spin_unlock(&ino->i_lock);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册