OSDN Git Service

[XFS] Initialise current offset in xfs_file_readdir correctly
[uclinux-h8/linux.git] / fs / xfs / linux-2.6 / xfs_file.c
index e1fcef2..4847eb8 100644 (file)
@@ -347,6 +347,7 @@ xfs_file_readdir(
 
                size = buf.used;
                de = (struct hack_dirent *)buf.dirent;
+               curr_offset = de->offset /* & 0x7fffffff */;
                while (size > 0) {
                        if (filldir(dirent, de->name, de->namlen,
                                        curr_offset & 0x7fffffff,