]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: fix filelayout_retry_commit when idx > 0
authorWeston Andros Adamson <dros@primarydata.com>
Tue, 9 Sep 2014 21:51:47 +0000 (17:51 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:43:45 +0000 (12:43 -0700)
commit50758e3c3334d6753fc9aafbe9453d6293a017bc
tree3af3907dc0f8f854b1ced9481ac093f1a58520c2
parentfb5c2039a367c5476b83d9eebc947010b0b0d71a
pnfs: fix filelayout_retry_commit when idx > 0

filelayout_retry_commit was recently split out from alloc_ds_commits,
but was done in such a way that the bucket pointer always starts at
index 0 no matter what the @idx argument is set to.

The intention of the @idx argument is to retry commits starting at
bucket @idx. This is called when alloc_ds_commits fails for a bucket.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayout.c