blob: 93b53e73f0f7e4f6cda076593087ad16c4686180 [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mark Fashehccd979b2005-12-15 14:31:24 -08002/* -*- mode: c; c-basic-offset: 8; -*-
3 * vim: noexpandtab sw=8 ts=8 sts=0:
4 *
5 * slotmap.h
6 *
7 * description here
8 *
9 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
Mark Fashehccd979b2005-12-15 14:31:24 -080010 */
11
12
13#ifndef SLOTMAP_H
14#define SLOTMAP_H
15
Mark Fashehccd979b2005-12-15 14:31:24 -080016int ocfs2_init_slot_info(struct ocfs2_super *osb);
Mark Fasheh8e8a4602008-02-01 11:59:09 -080017void ocfs2_free_slot_info(struct ocfs2_super *osb);
Mark Fashehccd979b2005-12-15 14:31:24 -080018
19int ocfs2_find_slot(struct ocfs2_super *osb);
20void ocfs2_put_slot(struct ocfs2_super *osb);
21
Mark Fasheh8e8a4602008-02-01 11:59:09 -080022int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
Mark Fashehccd979b2005-12-15 14:31:24 -080023
Joel Beckerd85b20e2008-02-01 12:01:05 -080024int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
25int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
26 unsigned int *node_num);
27
Joel Beckerfc881fa2008-02-01 12:04:48 -080028int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
Mark Fashehccd979b2005-12-15 14:31:24 -080029
Mark Fashehccd979b2005-12-15 14:31:24 -080030#endif