Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by

Jeff Layton and committed by
Trond Myklebust
ce603281 8bb28975

-2
-2
fs/nfs/flexfilelayout/flexfilelayout.c
··· 730 730 return FF_LAYOUT_MIRROR_COUNT(pgio->pg_lseg); 731 731 732 732 /* no lseg means that pnfs is not in use, so no mirroring here */ 733 - pnfs_put_lseg(pgio->pg_lseg); 734 - pgio->pg_lseg = NULL; 735 733 nfs_pageio_reset_write_mds(pgio); 736 734 return 1; 737 735 }