diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-19 15:13:05 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-26 15:52:04 +0100 |
commit | 329651b1f1965cdc0a66df5717d3ac2fccddc740 (patch) | |
tree | ebb3d26b5765be8fe7efd95d5bc0fa20ba10ef51 /fs/nfs/flexfilelayout/flexfilelayout.h | |
parent | SUNRPC: fix krb5p mount to provide large enough buffer in rq_rcvsize (diff) | |
download | linux-329651b1f1965cdc0a66df5717d3ac2fccddc740.tar.xz linux-329651b1f1965cdc0a66df5717d3ac2fccddc740.zip |
pNFS/flexfiles: Simplify allocation of the mirror array
Just allocate the array at the end of the layout segment structure,
instead of allocating it as a separate array of pointers.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h index 2f369966abf7..354a031c69b1 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.h +++ b/fs/nfs/flexfilelayout/flexfilelayout.h @@ -99,7 +99,7 @@ struct nfs4_ff_layout_segment { u64 stripe_unit; u32 flags; u32 mirror_array_cnt; - struct nfs4_ff_layout_mirror **mirror_array; + struct nfs4_ff_layout_mirror *mirror_array[]; }; struct nfs4_flexfile_layout { |