Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e52e84
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Sun, 8 Oct 2006 06:18:42 +0000
(06:18 +0000)
committer
wangdi
<wangdi>
Sun, 8 Oct 2006 06:18:42 +0000
(06:18 +0000)
rec_len is 0 for the last rec of each page, so it can not be used to
check rec valid
lustre/mdt/mdt_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
596b9b9
..
19e625c
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-843,7
+843,7
@@
static int mdt_write_dir_page(struct mdt_thread_info *info, struct page *page,
char *name;
offset += ent->lde_reclen;
- if (ent->lde_
reclen == 0 || ent->lde_
namelen == 0)
+ if (ent->lde_namelen == 0)
continue;
if (offset > size)