mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 16:35:01 +07:00
64bc06bb32
With the traditional page-based writes, blocks are allocated separately for each page written to. With iomap writes, we can allocate a lot more blocks at once, with a fraction of the allocation overhead for each page. Split calculating the number of blocks that can be allocated at a given position (gfs2_alloc_size) off from gfs2_iomap_alloc: that size determines the number of blocks to allocate and reserve in the journal. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Bob Peterson <rpeterso@redhat.com>
20 lines
587 B
C
20 lines
587 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2018 Red Hat, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __AOPS_DOT_H__
|
|
#define __AOPS_DOT_H__
|
|
|
|
#include "incore.h"
|
|
|
|
extern int stuffed_readpage(struct gfs2_inode *ip, struct page *page);
|
|
extern int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh,
|
|
loff_t pos, unsigned copied,
|
|
struct page *page);
|
|
extern void adjust_fs_space(struct inode *inode);
|
|
extern void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
|
|
unsigned int from, unsigned int len);
|
|
|
|
#endif /* __AOPS_DOT_H__ */
|