From: Trond Myklebust Date: Mon, 1 May 2017 21:35:58 +0000 (-0400) Subject: pNFS: Fix a typo in pnfs_generic_alloc_ds_commits X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f0114832a6eca70ee7563ba99b8e32da68f944b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pNFS: Fix a typo in pnfs_generic_alloc_ds_commits If the layout segment is invalid, we want to just resend the remaining writes. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/pnfs_nfs.c b/fs/nfs/pnfs_nfs.c index 7697ac0ff81a..ae600ab1a646 100644 --- a/fs/nfs/pnfs_nfs.c +++ b/fs/nfs/pnfs_nfs.c @@ -223,7 +223,7 @@ pnfs_generic_alloc_ds_commits(struct nfs_commit_info *cinfo, */ if (!pnfs_is_valid_lseg(bucket->clseg) && !test_bit(NFS_LSEG_LAYOUTRETURN, &bucket->clseg->pls_flags)) - continue; + break; data = nfs_commitdata_alloc(false); if (!data) break;