aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-09-10 20:30:26 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-10-12 14:54:37 -0400
commit7e8536797d4508ddc790cc3af6a281db1582d485 (patch)
treedd18e042cb00ff09077244ffd755b363776e1dc3 /fs
parentb8bc5f4fde376c9eee524a9a2b7e85560e604e85 (diff)
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 <mark.fasheh@oracle.com> Reviewed-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c
index d1f92fd2ed96..dbfa6f66291a 100644
--- a/fs/ocfs2/dir.c
+++ b/fs/ocfs2/dir.c
@@ -512,7 +512,7 @@ revalidate:
512 error = filldir(priv, de->name, 512 error = filldir(priv, de->name,
513 de->name_len, 513 de->name_len,
514 *f_pos, 514 *f_pos,
515 ino_from_blkno(sb, le64_to_cpu(de->inode)), 515 le64_to_cpu(de->inode),
516 d_type); 516 d_type);
517 if (error) 517 if (error)
518 break; 518 break;