mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Andreas Gruenbacher](/assets/img/avatar_default.png)
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>
19 lines
587 B
C
19 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__ */
|