From: Mark Fasheh Date: Tue, 11 Sep 2007 00:30:26 +0000 (-0700) Subject: ocfs2: Pass raw u64 to filldir X-Git-Tag: v2.6.24-rc1~1398^2~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8536797d4508ddc790cc3af6a281db1582d485;p=linux-2.6 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: Mark Fasheh Reviewed-by: Joel Becker --- diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index d1f92fd2ed..dbfa6f6629 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c @@ -512,7 +512,7 @@ revalidate: error = filldir(priv, de->name, de->name_len, *f_pos, - ino_from_blkno(sb, le64_to_cpu(de->inode)), + le64_to_cpu(de->inode), d_type); if (error) break;