Move misplaced function declaration to the appropriate header

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2024-05-11 00:02:30 +02:00
parent dc3b581e38
commit 253734b160
2 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,6 @@
/* /*
* Copyright(c) 2020-2021 Intel Corporation * Copyright(c) 2020-2021 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -16,6 +17,14 @@ struct ocf_metadata_segment
struct ocf_metadata_segment *superblock; struct ocf_metadata_segment *superblock;
}; };
int ocf_metadata_segment_init_in_place(
struct ocf_metadata_segment *segment,
struct ocf_cache *cache,
struct ocf_metadata_raw *raw,
ocf_flush_page_synch_t lock_page_pfn,
ocf_flush_page_synch_t unlock_page_pfn,
struct ocf_metadata_segment *superblock);
int ocf_metadata_segment_init( int ocf_metadata_segment_init(
struct ocf_metadata_segment **self, struct ocf_metadata_segment **self,
struct ocf_cache *cache, struct ocf_cache *cache,

View File

@ -1,11 +1,13 @@
/* /*
* Copyright(c) 2020-2022 Intel Corporation * Copyright(c) 2020-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include "metadata.h" #include "metadata.h"
#include "metadata_core.h" #include "metadata_core.h"
#include "metadata_internal.h" #include "metadata_internal.h"
#include "metadata_segment.h"
#include "metadata_segment_id.h" #include "metadata_segment_id.h"
#include "metadata_superblock.h" #include "metadata_superblock.h"
#include "../ocf_priv.h" #include "../ocf_priv.h"
@ -26,14 +28,6 @@
#define OCF_DEBUG_PARAM(cache, format, ...) #define OCF_DEBUG_PARAM(cache, format, ...)
#endif #endif
int ocf_metadata_segment_init_in_place(
struct ocf_metadata_segment *segment,
struct ocf_cache *cache,
struct ocf_metadata_raw *raw,
ocf_flush_page_synch_t lock_page_pfn,
ocf_flush_page_synch_t unlock_page_pfn,
struct ocf_metadata_segment *superblock);
/** /**
* @brief Super Block - Set Shutdown Status * @brief Super Block - Set Shutdown Status
* *