Skip to content

Commit

Permalink
fiemap: fiemap_count_shared: use coherent parameter size
Browse files Browse the repository at this point in the history
Fixes #344

Signed-off-by: Alexandre Bruyelles <git@jack.fr.eu.org>
  • Loading branch information
JackSlateur committed May 12, 2024
1 parent cad1839 commit 9e97c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fiemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct fiemap *do_fiemap(int fd)
return fiemap;
}

int fiemap_count_shared(int fd, size_t start_off, size_t end_off, size_t *shared)
int fiemap_count_shared(int fd, size_t start_off, size_t end_off, uint64_t *shared)
{
_cleanup_(freep) struct fiemap *fiemap = NULL;
struct fiemap_extent *extent;
Expand Down
2 changes: 1 addition & 1 deletion fiemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ struct fiemap *do_fiemap(int fd);
/*
* Count how much of the area between start_off and end_off is shared.
*/
int fiemap_count_shared(int fd, size_t start_off, size_t end_off, size_t *shared);
int fiemap_count_shared(int fd, size_t start_off, size_t end_off, uint64_t *shared);
#endif /* __FIEMAP_H__ */

0 comments on commit 9e97c82

Please sign in to comment.