diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-06-12 23:01:32 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-20 01:19:30 +0200 |
commit | 285e0fc95ab122285c123c41cdb198fff9bbb3b8 (patch) | |
tree | a9c231252dfd303546c117e37eb58c286e8b457c /fs/gfs2/aops.h | |
parent | buffer: convert __block_write_full_page() to __block_write_full_folio() (diff) | |
download | linux-285e0fc95ab122285c123c41cdb198fff9bbb3b8.tar.xz linux-285e0fc95ab122285c123c41cdb198fff9bbb3b8.zip |
gfs2: support ludicrously large folios in gfs2_trans_add_databufs()
We may someday support folios larger than 4GB, so use a size_t for the
byte count within a folio to prevent unpleasant truncations.
Link: https://lkml.kernel.org/r/20230612210141.730128-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | fs/gfs2/aops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/aops.h b/fs/gfs2/aops.h index 09db1914425e..f08322ef41cf 100644 --- a/fs/gfs2/aops.h +++ b/fs/gfs2/aops.h @@ -10,6 +10,6 @@ extern void adjust_fs_space(struct inode *inode); extern void gfs2_trans_add_databufs(struct gfs2_inode *ip, struct folio *folio, - unsigned int from, unsigned int len); + size_t from, size_t len); #endif /* __AOPS_DOT_H__ */ |