mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
pNFS/flexfiles: The mirror count could depend on the layout segment range
Make sure we specify the layout segment range when calculating the mirror count. In theory, that number could depend on the range to which we're writing. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
f97ff92bd1
commit
18eb87f444
@ -947,8 +947,8 @@ ff_layout_pg_get_mirror_count_write(struct nfs_pageio_descriptor *pgio,
|
|||||||
if (!pgio->pg_lseg) {
|
if (!pgio->pg_lseg) {
|
||||||
pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode,
|
pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode,
|
||||||
nfs_req_openctx(req),
|
nfs_req_openctx(req),
|
||||||
0,
|
req_offset(req),
|
||||||
NFS4_MAX_UINT64,
|
req->wb_bytes,
|
||||||
IOMODE_RW,
|
IOMODE_RW,
|
||||||
false,
|
false,
|
||||||
GFP_NOFS);
|
GFP_NOFS);
|
||||||
|
Loading…
Reference in New Issue
Block a user