diff options
Diffstat (limited to 'fs/ufs/dir.c')
-rw-r--r-- | fs/ufs/dir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c index 732c3fd2b6f2..7f0a0aa63584 100644 --- a/fs/ufs/dir.c +++ b/fs/ufs/dir.c | |||
@@ -252,6 +252,7 @@ struct ufs_dir_entry *ufs_find_entry(struct inode *dir, struct dentry *dentry, | |||
252 | unsigned long start, n; | 252 | unsigned long start, n; |
253 | unsigned long npages = ufs_dir_pages(dir); | 253 | unsigned long npages = ufs_dir_pages(dir); |
254 | struct page *page = NULL; | 254 | struct page *page = NULL; |
255 | struct ufs_inode_info *ui = UFS_I(dir); | ||
255 | struct ufs_dir_entry *de; | 256 | struct ufs_dir_entry *de; |
256 | 257 | ||
257 | UFSD("ENTER, dir_ino %lu, name %s, namlen %u\n", dir->i_ino, name, namelen); | 258 | UFSD("ENTER, dir_ino %lu, name %s, namlen %u\n", dir->i_ino, name, namelen); |
@@ -262,8 +263,8 @@ struct ufs_dir_entry *ufs_find_entry(struct inode *dir, struct dentry *dentry, | |||
262 | /* OFFSET_CACHE */ | 263 | /* OFFSET_CACHE */ |
263 | *res_page = NULL; | 264 | *res_page = NULL; |
264 | 265 | ||
265 | /* start = ei->i_dir_start_lookup; */ | 266 | start = ui->i_dir_start_lookup; |
266 | start = 0; | 267 | |
267 | if (start >= npages) | 268 | if (start >= npages) |
268 | start = 0; | 269 | start = 0; |
269 | n = start; | 270 | n = start; |
@@ -295,7 +296,7 @@ out: | |||
295 | 296 | ||
296 | found: | 297 | found: |
297 | *res_page = page; | 298 | *res_page = page; |
298 | /* ei->i_dir_start_lookup = n; */ | 299 | ui->i_dir_start_lookup = n; |
299 | return de; | 300 | return de; |
300 | } | 301 | } |
301 | 302 | ||