bmap.h (1ac731c529cd4d6adbce134754b51ff7d822b145) bmap.h (0b2355fe91ac3756a9e29c8b833ba33f9affb520)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
5 */
6
7#ifndef __BMAP_DOT_H__
8#define __BMAP_DOT_H__

--- 32 unchanged lines hidden (view full) ---

41 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs);
42 *ind_blocks += tmp;
43 }
44}
45
46extern const struct iomap_ops gfs2_iomap_ops;
47extern const struct iomap_writeback_ops gfs2_writeback_ops;
48
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
5 */
6
7#ifndef __BMAP_DOT_H__
8#define __BMAP_DOT_H__

--- 32 unchanged lines hidden (view full) ---

41 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs);
42 *ind_blocks += tmp;
43 }
44}
45
46extern const struct iomap_ops gfs2_iomap_ops;
47extern const struct iomap_writeback_ops gfs2_writeback_ops;
48
49extern int gfs2_unstuff_dinode(struct gfs2_inode *ip);
50extern int gfs2_block_map(struct inode *inode, sector_t lblock,
51 struct buffer_head *bh, int create);
52extern int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
53 struct iomap *iomap);
54extern int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
55 struct iomap *iomap);
56extern int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
57 unsigned int *extlen);
58extern int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
59 unsigned *extlen, bool *new);
60extern int gfs2_setattr_size(struct inode *inode, u64 size);
61extern int gfs2_truncatei_resume(struct gfs2_inode *ip);
62extern int gfs2_file_dealloc(struct gfs2_inode *ip);
63extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
64 unsigned int len);
65extern int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
66extern void gfs2_free_journal_extents(struct gfs2_jdesc *jd);
67extern int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
49int gfs2_unstuff_dinode(struct gfs2_inode *ip);
50int gfs2_block_map(struct inode *inode, sector_t lblock,
51 struct buffer_head *bh, int create);
52int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
53 struct iomap *iomap);
54int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
55 struct iomap *iomap);
56int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
57 unsigned int *extlen);
58int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
59 unsigned *extlen, bool *new);
60int gfs2_setattr_size(struct inode *inode, u64 size);
61int gfs2_truncatei_resume(struct gfs2_inode *ip);
62int gfs2_file_dealloc(struct gfs2_inode *ip);
63int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
64 unsigned int len);
65int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
66void gfs2_free_journal_extents(struct gfs2_jdesc *jd);
67int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
68
69#endif /* __BMAP_DOT_H__ */
68
69#endif /* __BMAP_DOT_H__ */