Commit 9526b2b6 authored by Sachin Bhamare's avatar Sachin Bhamare Committed by Trond Myklebust

pnfs-obj: Remove unused variable from objlayout_get_deviceinfo()

Local variable 'sb' was not being used in objlayout_get_deviceinfo().
Signed-off-by: default avatarSachin Bhamare <sbhamare@panasas.com>
Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 1aba1567
...@@ -604,7 +604,6 @@ int objlayout_get_deviceinfo(struct pnfs_layout_hdr *pnfslay, ...@@ -604,7 +604,6 @@ int objlayout_get_deviceinfo(struct pnfs_layout_hdr *pnfslay,
{ {
struct objlayout_deviceinfo *odi; struct objlayout_deviceinfo *odi;
struct pnfs_device pd; struct pnfs_device pd;
struct super_block *sb;
struct page *page, **pages; struct page *page, **pages;
u32 *p; u32 *p;
int err; int err;
...@@ -623,7 +622,6 @@ int objlayout_get_deviceinfo(struct pnfs_layout_hdr *pnfslay, ...@@ -623,7 +622,6 @@ int objlayout_get_deviceinfo(struct pnfs_layout_hdr *pnfslay,
pd.pglen = PAGE_SIZE; pd.pglen = PAGE_SIZE;
pd.mincount = 0; pd.mincount = 0;
sb = pnfslay->plh_inode->i_sb;
err = nfs4_proc_getdeviceinfo(NFS_SERVER(pnfslay->plh_inode), &pd); err = nfs4_proc_getdeviceinfo(NFS_SERVER(pnfslay->plh_inode), &pd);
dprintk("%s nfs_getdeviceinfo returned %d\n", __func__, err); dprintk("%s nfs_getdeviceinfo returned %d\n", __func__, err);
if (err) if (err)
......
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