]> 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)
commit20320274267084ef3d4a5a4ef79bbeee28a68f92
treeebb3d26b5765be8fe7efd95d5bc0fa20ba10ef51
parente84518c16712a77ecf86411966337002d5d6ed92
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