]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/flexfiles: Simplify allocation of the mirror array
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 19 Mar 2020 14:13:05 +0000 (10:13 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 26 Mar 2020 14:52:04 +0000 (10:52 -0400)
commitc291e33518ae90f85832233cc31d2918c72d690c
treeebb3d26b5765be8fe7efd95d5bc0fa20ba10ef51
parentefad4b289578030b3d7bdc75aea4b9422a965c4b
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>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.h