aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exportfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exportfs')
-rw-r--r--fs/exportfs/expfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c
index 51bdc5cab069..80246bad1b7f 100644
--- a/fs/exportfs/expfs.c
+++ b/fs/exportfs/expfs.c
@@ -280,13 +280,14 @@ static int get_name(struct vfsmount *mnt, struct dentry *dentry,
280 int old_seq = buffer.sequence; 280 int old_seq = buffer.sequence;
281 281
282 error = vfs_readdir(file, filldir_one, &buffer); 282 error = vfs_readdir(file, filldir_one, &buffer);
283 if (buffer.found) {
284 error = 0;
285 break;
286 }
283 287
284 if (error < 0) 288 if (error < 0)
285 break; 289 break;
286 290
287 error = 0;
288 if (buffer.found)
289 break;
290 error = -ENOENT; 291 error = -ENOENT;
291 if (old_seq == buffer.sequence) 292 if (old_seq == buffer.sequence)
292 break; 293 break;