Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c8b3125 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

ext2: use ext2_fsblk_t type



Use ext2_fsblk_t type for filesystem-wide blocks number

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 24097d12
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -254,13 +254,13 @@ static Indirect *ext2_get_branch(struct inode *inode,
 *	Caller must make sure that @ind is valid and will stay that way.
 */

static unsigned long ext2_find_near(struct inode *inode, Indirect *ind)
static ext2_fsblk_t ext2_find_near(struct inode *inode, Indirect *ind)
{
	struct ext2_inode_info *ei = EXT2_I(inode);
	__le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data;
	__le32 *p;
	unsigned long bg_start;
	unsigned long colour;
	ext2_fsblk_t bg_start;
	ext2_fsblk_t colour;

	/* Try to find previous block */
	for (p = ind->p - 1; p >= start; p--)
@@ -290,7 +290,7 @@ static unsigned long ext2_find_near(struct inode *inode, Indirect *ind)
 *	Returns preferred place for a block (the goal).
 */

static inline int ext2_find_goal(struct inode *inode, long block,
static inline ext2_fsblk_t ext2_find_goal(struct inode *inode, long block,
					  Indirect *partial)
{
	struct ext2_block_alloc_info *block_i;