Commit b4bf3d5c authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

gfs2: Remove unused gfs2_extent_length argument

The limit argument of gfs2_extent_length() is unused.
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent bbacb395
...@@ -415,13 +415,12 @@ static void release_metapath(struct metapath *mp) ...@@ -415,13 +415,12 @@ static void release_metapath(struct metapath *mp)
* gfs2_extent_length - Returns length of an extent of blocks * gfs2_extent_length - Returns length of an extent of blocks
* @bh: The metadata block * @bh: The metadata block
* @ptr: Current position in @bh * @ptr: Current position in @bh
* @limit: Max extent length to return
* @eob: Set to 1 if we hit "end of block" * @eob: Set to 1 if we hit "end of block"
* *
* Returns: The length of the extent (minimum of one block) * Returns: The length of the extent (minimum of one block)
*/ */
static inline unsigned int gfs2_extent_length(struct buffer_head *bh, __be64 *ptr, size_t limit, int *eob) static inline unsigned int gfs2_extent_length(struct buffer_head *bh, __be64 *ptr, int *eob)
{ {
const __be64 *end = (__be64 *)(bh->b_data + bh->b_size); const __be64 *end = (__be64 *)(bh->b_data + bh->b_size);
const __be64 *first = ptr; const __be64 *first = ptr;
...@@ -913,7 +912,7 @@ static int __gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, ...@@ -913,7 +912,7 @@ static int __gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
goto do_alloc; goto do_alloc;
bh = mp->mp_bh[ip->i_height - 1]; bh = mp->mp_bh[ip->i_height - 1];
len = gfs2_extent_length(bh, ptr, len, &eob); len = gfs2_extent_length(bh, ptr, &eob);
iomap->addr = be64_to_cpu(*ptr) << inode->i_blkbits; iomap->addr = be64_to_cpu(*ptr) << inode->i_blkbits;
iomap->length = len << inode->i_blkbits; iomap->length = len << inode->i_blkbits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment