aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/libfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index 1247ee90253a..5294de1f40c4 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -159,7 +159,10 @@ int dcache_readdir(struct file * filp, void * dirent, filldir_t filldir)
159 continue; 159 continue;
160 160
161 spin_unlock(&dcache_lock); 161 spin_unlock(&dcache_lock);
162 if (filldir(dirent, next->d_name.name, next->d_name.len, filp->f_pos, next->d_inode->i_ino, dt_type(next->d_inode)) < 0) 162 if (filldir(dirent, next->d_name.name,
163 next->d_name.len, filp->f_pos,
164 next->d_inode->i_ino,
165 dt_type(next->d_inode)) < 0)
163 return 0; 166 return 0;
164 spin_lock(&dcache_lock); 167 spin_lock(&dcache_lock);
165 /* next is still alive */ 168 /* next is still alive */