NFSv4.2/flexfiles: Fix a typo in the flexfiles layoutstats code
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 8 Jul 2015 18:19:23 +0000 (20:19 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 8 Jul 2015 18:25:41 +0000 (20:25 +0200)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c

index c12951b9551eab8b0394ed2aa218cf15ce6f2c39..b3289d701eea21623f4081fee1b2807e3e2f4b3a 100644 (file)
@@ -1852,7 +1852,7 @@ ff_layout_mirror_prepare_stats(struct nfs42_layoutstat_args *args,
        struct nfs42_layoutstat_devinfo *devinfo;
        int i;
 
-       for (i = 0; i <= FF_LAYOUT_MIRROR_COUNT(pls); i++) {
+       for (i = 0; i < FF_LAYOUT_MIRROR_COUNT(pls); i++) {
                if (*dev_count >= dev_limit)
                        break;
                mirror = FF_LAYOUT_COMP(pls, i);