kclient: initialize readdir next_offset on dir open

Otherwise we don't compensate for . and .. properly.
This commit is contained in:
Sage Weil 2009-06-17 16:15:15 -07:00
parent 04455b859a
commit 841827015c

View File

@ -61,6 +61,7 @@ static int ceph_init_file(struct inode *inode, struct file *file, int fmode)
return -ENOMEM;
}
cf->fmode = fmode;
cf->next_offset = 2;
file->private_data = cf;
BUG_ON(inode->i_fop->release != ceph_release);
break;