diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2021-03-27 23:56:40 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-04-03 22:38:11 +0300 |
commit | 54992257fe4bb9f76f66b3863492aa8cc5567790 (patch) | |
tree | c055aadde61675d1ad5da75a0a3e6af494ce467a /fs/gfs2/file.c | |
parent | 0bf3e3273b922e50cae4bcc80476df19cea057fb (diff) | |
download | linux-54992257fe4bb9f76f66b3863492aa8cc5567790.tar.xz |
gfs2: Add new gfs2_iomap_get helper
Rename the current gfs2_iomap_get and gfs2_iomap_alloc functions to __*.
Add a new gfs2_iomap_get helper that doesn't expose struct metapath.
Rename gfs2_iomap_get_alloc to gfs2_iomap_alloc. Use the new helpers
where they make sense.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r-- | fs/gfs2/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 2d500f90cdac..5d34b974f4fd 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -421,7 +421,7 @@ static int gfs2_allocate_page_backing(struct page *page, unsigned int length) do { struct iomap iomap = { }; - if (gfs2_iomap_get_alloc(page->mapping->host, pos, length, &iomap)) + if (gfs2_iomap_alloc(page->mapping->host, pos, length, &iomap)) return -EIO; if (length < iomap.length) @@ -991,8 +991,7 @@ static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, while (offset < end) { struct iomap iomap = { }; - error = gfs2_iomap_get_alloc(inode, offset, end - offset, - &iomap); + error = gfs2_iomap_alloc(inode, offset, end - offset, &iomap); if (error) goto out; offset = iomap.offset + iomap.length; |