OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[XFS] Initialise current offset in xfs_file_readdir correctly
[uclinux-h8/linux.git]
/
fs
/
xfs
/
linux-2.6
/
xfs_file.c
diff --git
a/fs/xfs/linux-2.6/xfs_file.c
b/fs/xfs/linux-2.6/xfs_file.c
index
e1fcef2
..
4847eb8
100644
(file)
--- a/
fs/xfs/linux-2.6/xfs_file.c
+++ b/
fs/xfs/linux-2.6/xfs_file.c
@@
-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,