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

Commit 4e3911f3 authored by Al Viro's avatar Al Viro
Browse files

ufs: the offsets ufs_block_to_path() puts into array are not sector_t



type makes no sense - those are indices in block number arrays, not
block numbers.  And no, UFS is not likely to grow indirect blocks with
4Gpointers in them...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 010d331f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
#include "swab.h"
#include "util.h"

static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t offsets[4])
static int ufs_block_to_path(struct inode *inode, sector_t i_block, unsigned offsets[4])
{
	struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi;
	int ptrs = uspi->s_apb;
@@ -153,7 +153,7 @@ static u64 ufs_frag_map(struct inode *inode, sector_t frag)
	while (--depth) {
		__fs32 *ptr;
		struct buffer_head *bh;
		sector_t n = *p++;
		unsigned n = *p++;

		bh = sb_bread(sb, uspi->s_sbbase +
				  fs32_to_cpu(sb, q->key32) + (n>>shift));
@@ -177,7 +177,7 @@ static u64 ufs_frag_map(struct inode *inode, sector_t frag)
	while (--depth) {
		__fs64 *ptr;
		struct buffer_head *bh;
		sector_t n = *p++;
		unsigned n = *p++;

		bh = sb_bread(sb, uspi->s_sbbase +
				  fs64_to_cpu(sb, q->key64) + (n>>shift));