diff options
author | Georg Ottinger <g.ottinger@gmx.at> | 2023-08-17 21:59:25 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-08-18 12:54:54 +0200 |
commit | 2ebc736c8452f8ccf86f5398e8d8ceec283aa50d (patch) | |
tree | f5572d3d0072ae46e6dda83bcb3b7111fd120674 /fs/ext2/balloc.c | |
parent | 9bc6fc3304d89f19c028cb4a8d6af94f9e5faeb0 (diff) | |
download | linux-stable-2ebc736c8452f8ccf86f5398e8d8ceec283aa50d.tar.gz linux-stable-2ebc736c8452f8ccf86f5398e8d8ceec283aa50d.tar.bz2 linux-stable-2ebc736c8452f8ccf86f5398e8d8ceec283aa50d.zip |
ext2: improve consistency of ext2_fsblk_t datatype usage
The ext2 block allocation/deallocation functions and their respective
calls use a mixture of unsigned long and ext2_fsblk_t datatypes to
index the desired ext2 block. This commit replaces occurrences of
unsigned long with ext2_fsblk_t, covering the functions
ext2_new_block(), ext2_new_blocks(), ext2_free_blocks(),
ext2_free_data() and ext2_free_branches(). This commit is rather
conservative, and only replaces unsigned long with ext2_fsblk_t if
the variable is used to index a specific ext2 block.
Signed-off-by: Georg Ottinger <g.ottinger@gmx.at>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230817195925.10268-1-g.ottinger@gmx.at>
Diffstat (limited to 'fs/ext2/balloc.c')
-rw-r--r-- | fs/ext2/balloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 424b277f31ff..2f48d25170f7 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -474,8 +474,8 @@ void ext2_discard_reservation(struct inode *inode) * @block: start physical block to free * @count: number of blocks to free */ -void ext2_free_blocks (struct inode * inode, unsigned long block, - unsigned long count) +void ext2_free_blocks(struct inode * inode, ext2_fsblk_t block, + unsigned long count) { struct buffer_head *bitmap_bh = NULL; struct buffer_head * bh2; |