xref: /openbmc/linux/fs/ocfs2/extent_map.h (revision 9517bac6)
1ccd979bdSMark Fasheh /* -*- mode: c; c-basic-offset: 8; -*-
2ccd979bdSMark Fasheh  * vim: noexpandtab sw=8 ts=8 sts=0:
3ccd979bdSMark Fasheh  *
4ccd979bdSMark Fasheh  * extent_map.h
5ccd979bdSMark Fasheh  *
6ccd979bdSMark Fasheh  * In-memory file extent mappings for OCFS2.
7ccd979bdSMark Fasheh  *
8ccd979bdSMark Fasheh  * Copyright (C) 2004 Oracle.  All rights reserved.
9ccd979bdSMark Fasheh  *
10ccd979bdSMark Fasheh  * This program is free software; you can redistribute it and/or
11ccd979bdSMark Fasheh  * modify it under the terms of the GNU General Public
12ccd979bdSMark Fasheh  * License, version 2,  as published by the Free Software Foundation.
13ccd979bdSMark Fasheh  *
14ccd979bdSMark Fasheh  * This program is distributed in the hope that it will be useful,
15ccd979bdSMark Fasheh  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16ccd979bdSMark Fasheh  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17ccd979bdSMark Fasheh  * General Public License for more details.
18ccd979bdSMark Fasheh  *
19ccd979bdSMark Fasheh  * You should have received a copy of the GNU General Public
20ccd979bdSMark Fasheh  * License along with this program; if not, write to the
21ccd979bdSMark Fasheh  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22ccd979bdSMark Fasheh  * Boston, MA 021110-1307, USA.
23ccd979bdSMark Fasheh  */
24ccd979bdSMark Fasheh 
25ccd979bdSMark Fasheh #ifndef _EXTENT_MAP_H
26ccd979bdSMark Fasheh #define _EXTENT_MAP_H
27ccd979bdSMark Fasheh 
289517bac6SMark Fasheh int ocfs2_get_clusters(struct inode *inode, u32 v_cluster, u32 *p_cluster,
299517bac6SMark Fasheh 		       u32 *num_clusters);
30363041a5SMark Fasheh int ocfs2_extent_map_get_blocks(struct inode *inode, u64 v_blkno, u64 *p_blkno,
31363041a5SMark Fasheh 				int *ret_count);
32ccd979bdSMark Fasheh 
33ccd979bdSMark Fasheh #endif  /* _EXTENT_MAP_H */
34