diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-06-04 08:56:51 -0400 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-06-04 08:56:51 -0400 |
commit | 628e366df11c0a61487522ec1d4bca5c77fe9083 (patch) | |
tree | fe32126aa08767b5621741b63b096af966604f9d /fs/gfs2/inode.c | |
parent | 845802b112eeedfa32b2ebba694996a49677596e (diff) |
gfs2: Iomap cleanups and improvements
Clean up gfs2_iomap_alloc and gfs2_iomap_get. Document how
gfs2_iomap_alloc works: it now needs to be called separately after
gfs2_iomap_get where necessary; this will be used later by iomap write.
Move gfs2_iomap_ops into bmap.c.
Introduce a new gfs2_iomap_get_alloc helper and use it in
fallocate_chunk: gfs2_iomap_begin will become unsuitable for fallocate
with proper iomap write support.
In gfs2_block_map and fallocate_chunk, zero-initialize struct iomap.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 8700eb815638..feda55f67050 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -2006,10 +2006,6 @@ static int gfs2_getattr(const struct path *path, struct kstat *stat, | |||
2006 | return 0; | 2006 | return 0; |
2007 | } | 2007 | } |
2008 | 2008 | ||
2009 | const struct iomap_ops gfs2_iomap_ops = { | ||
2010 | .iomap_begin = gfs2_iomap_begin, | ||
2011 | }; | ||
2012 | |||
2013 | static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | 2009 | static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, |
2014 | u64 start, u64 len) | 2010 | u64 start, u64 len) |
2015 | { | 2011 | { |