From: Jeff Layton Date: Fri, 10 Jul 2015 19:59:26 +0000 (-0400) Subject: nfs: remove some dead code in ff_layout_pg_get_mirror_count_write X-Git-Tag: v4.14-rc1~4745^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce603281468cf1be0a70a45fdaef761db134b900;p=platform%2Fkernel%2Flinux-rpi.git nfs: remove some dead code in ff_layout_pg_get_mirror_count_write We already know that pg_lseg is NULL here. Signed-off-by: Jeff Layton Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index 2a93bec..13fe64b 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -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; }