nfs: remove some dead code in ff_layout_pg_get_mirror_count_write
authorJeff Layton <jlayton@poochiereds.net>
Fri, 10 Jul 2015 19:59:26 +0000 (15:59 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Aug 2015 18:25:03 +0000 (13:25 -0500)
We already know that pg_lseg is NULL here.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c

index 2a93bec7e6dd0b7d1585f348dd138f3d31e6d1d9..13fe64b4e259e875a9b41c03d5e74f481df149b0 100644 (file)
@@ -730,8 +730,6 @@ ff_layout_pg_get_mirror_count_write(struct nfs_pageio_descriptor *pgio,
                return FF_LAYOUT_MIRROR_COUNT(pgio->pg_lseg);
 
        /* no lseg means that pnfs is not in use, so no mirroring here */
-       pnfs_put_lseg(pgio->pg_lseg);
-       pgio->pg_lseg = NULL;
        nfs_pageio_reset_write_mds(pgio);
        return 1;
 }