summaryrefslogtreecommitdiff
path: root/fs/nfs/flexfilelayout/flexfilelayout.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-03-19 17:13:05 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-03-26 17:52:04 +0300
commit329651b1f1965cdc0a66df5717d3ac2fccddc740 (patch)
treeebb3d26b5765be8fe7efd95d5bc0fa20ba10ef51 /fs/nfs/flexfilelayout/flexfilelayout.h
parentdf513a7711712758b9cb1a48d86712e7e1ee03f4 (diff)
downloadlinux-329651b1f1965cdc0a66df5717d3ac2fccddc740.tar.xz
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.h2
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 {