diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-03-05 08:24:28 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-03-08 11:26:20 -0500 |
commit | d39d18e0ef738cc8614abd8bb25fb270a4c41801 (patch) | |
tree | 3a362c35c8a51fad2841c60e2533e864932c758c /fs/gfs2/bmap.c | |
parent | b9e03f1861d8ee117aebb40e5d975cf355879405 (diff) |
gfs2: Improve gfs2_block_map comment
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 51f940e76c5e..8c25a64d8ae0 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -812,15 +812,22 @@ do_alloc: | |||
812 | } | 812 | } |
813 | 813 | ||
814 | /** | 814 | /** |
815 | * gfs2_block_map - Map a block from an inode to a disk block | 815 | * gfs2_block_map - Map one or more blocks of an inode to a disk block |
816 | * @inode: The inode | 816 | * @inode: The inode |
817 | * @lblock: The logical block number | 817 | * @lblock: The logical block number |
818 | * @bh_map: The bh to be mapped | 818 | * @bh_map: The bh to be mapped |
819 | * @create: True if its ok to alloc blocks to satify the request | 819 | * @create: True if its ok to alloc blocks to satify the request |
820 | * | 820 | * |
821 | * Sets buffer_mapped() if successful, sets buffer_boundary() if a | 821 | * The size of the requested mapping is defined in bh_map->b_size. |
822 | * read of metadata will be required before the next block can be | 822 | * |
823 | * mapped. Sets buffer_new() if new blocks were allocated. | 823 | * Clears buffer_mapped(bh_map) and leaves bh_map->b_size unchanged |
824 | * when @lblock is not mapped. Sets buffer_mapped(bh_map) and | ||
825 | * bh_map->b_size to indicate the size of the mapping when @lblock and | ||
826 | * successive blocks are mapped, up to the requested size. | ||
827 | * | ||
828 | * Sets buffer_boundary() if a read of metadata will be required | ||
829 | * before the next block can be mapped. Sets buffer_new() if new | ||
830 | * blocks were allocated. | ||
824 | * | 831 | * |
825 | * Returns: errno | 832 | * Returns: errno |
826 | */ | 833 | */ |