forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Bob Peterson <[email protected]>
- Loading branch information
Andreas Gruenbacher
committed
Jul 2, 2018
1 parent
d505a96
commit 64bc06b
Showing
4 changed files
with
338 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* 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__ */ |
Oops, something went wrong.