blob: a43644570b534574da418e55940e8c08a49dd7fa [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Masahiro Yamadafa60ce22021-05-06 18:06:44 -07002/*
Mark Fashehccd979b2005-12-15 14:31:24 -08003 * slotmap.h
4 *
5 * description here
6 *
7 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
Mark Fashehccd979b2005-12-15 14:31:24 -08008 */
9
10
11#ifndef SLOTMAP_H
12#define SLOTMAP_H
13
Mark Fashehccd979b2005-12-15 14:31:24 -080014int ocfs2_init_slot_info(struct ocfs2_super *osb);
Mark Fasheh8e8a4602008-02-01 11:59:09 -080015void ocfs2_free_slot_info(struct ocfs2_super *osb);
Mark Fashehccd979b2005-12-15 14:31:24 -080016
17int ocfs2_find_slot(struct ocfs2_super *osb);
18void ocfs2_put_slot(struct ocfs2_super *osb);
19
Mark Fasheh8e8a4602008-02-01 11:59:09 -080020int ocfs2_refresh_slot_info(struct ocfs2_super *osb);
Mark Fashehccd979b2005-12-15 14:31:24 -080021
Joel Beckerd85b20e2008-02-01 12:01:05 -080022int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
23int ocfs2_slot_to_node_num_locked(struct ocfs2_super *osb, int slot_num,
24 unsigned int *node_num);
25
Joel Beckerfc881fa2008-02-01 12:04:48 -080026int ocfs2_clear_slot(struct ocfs2_super *osb, int slot_num);
Mark Fashehccd979b2005-12-15 14:31:24 -080027
Mark Fashehccd979b2005-12-15 14:31:24 -080028#endif