projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c212615
)
pNFS: Fix an unused variable warning in pnfs_roc_get_barrier
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 20 Aug 2015 04:00:50 +0000
(23:00 -0500)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 20 Aug 2015 04:01:53 +0000
(23:01 -0500)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c
patch
|
blob
|
history
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index e101a491e4e7c231b9ad3a6d0f840467e4a391e2..8a3f30b695e286db4710c365f70aa346a2a6960e 100644
(file)
--- a/
fs/nfs/pnfs.c
+++ b/
fs/nfs/pnfs.c
@@
-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);
}