blob: 4e6cde2943bd5a7c0ca2f8b0082a79ad1b7418d4 [file] [log] [blame]
David Teiglandb3b94fa2006-01-16 16:50:04 +00001/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
Steven Whitehouse3a8a9a12006-05-18 15:09:15 -04003 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
David Teiglandb3b94fa2006-01-16 16:50:04 +00004 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
Steven Whitehousee9fc2aa2006-09-01 11:05:15 -04007 * of the GNU General Public License version 2.
David Teiglandb3b94fa2006-01-16 16:50:04 +00008 */
9
10#ifndef __BMAP_DOT_H__
11#define __BMAP_DOT_H__
12
Steven Whitehousef2f7ba52006-09-05 10:39:21 -040013struct inode;
14struct gfs2_inode;
15struct page;
16
Steven Whitehousef25ef0c2006-07-26 10:51:20 -040017int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page);
Bob Petersone9e1ef22007-12-10 14:13:27 -060018int gfs2_block_map(struct inode *inode, sector_t lblock, struct buffer_head *bh, int create);
Steven Whitehousefd88de562006-05-05 16:59:11 -040019int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen);
David Teiglandb3b94fa2006-01-16 16:50:04 +000020
Steven Whitehousecd915492006-09-04 12:49:07 -040021int gfs2_truncatei(struct gfs2_inode *ip, u64 size);
David Teiglandb3b94fa2006-01-16 16:50:04 +000022int gfs2_truncatei_resume(struct gfs2_inode *ip);
23int gfs2_file_dealloc(struct gfs2_inode *ip);
24
25void gfs2_write_calc_reserv(struct gfs2_inode *ip, unsigned int len,
26 unsigned int *data_blocks,
27 unsigned int *ind_blocks);
Steven Whitehousecd915492006-09-04 12:49:07 -040028int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
David Teiglandb3b94fa2006-01-16 16:50:04 +000029 unsigned int len, int *alloc_required);
30
David Teiglandb3b94fa2006-01-16 16:50:04 +000031#endif /* __BMAP_DOT_H__ */