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

Commit 7e853679 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2: Pass raw u64 to filldir



filldir_t can take this, so don't turn de->inode into a 32 bit value. Right
now this doesn't make a difference since no ocfs2 inodes overflow that, but
it could be a nasty surprise later on if some kernel code is calling
ocfs2_dir_foreach_blk() and expecting real inode numbers back...

Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
Reviewed-by: default avatarJoel Becker <joel.becker@oracle.com>
parent b8bc5f4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -512,7 +512,7 @@ static int ocfs2_dir_foreach_blk(struct inode *inode, unsigned long *f_version,
				error = filldir(priv, de->name,
				error = filldir(priv, de->name,
						de->name_len,
						de->name_len,
						*f_pos,
						*f_pos,
						ino_from_blkno(sb, le64_to_cpu(de->inode)),
						le64_to_cpu(de->inode),
						d_type);
						d_type);
				if (error)
				if (error)
					break;
					break;