]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
Compute the maximal chunk size only once.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index 25082834eb0160de013dd11639f3354160ee261b..383a8fda0710653c28c5853c2b8e7949b9b45b54 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -283,8 +283,7 @@ static int initialize_fec_client(struct fec_client *fc, struct vss_task *vsst)
        if (ret < 0)
                goto err;
        hs = ret;
-       ret = num_slices(afh_get_largest_chunk_size(&mmd->afd.afhi),
-               mps, rs);
+       ret = num_slices(mmd->afd.max_chunk_size, mps, rs);
        if (ret < 0)
                goto err;
        ds = ret;