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

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
...@@ -512,7 +512,7 @@ static int ocfs2_dir_foreach_blk(struct inode *inode, unsigned long *f_version, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment