diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-24 07:29:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:13:10 -0400 |
commit | 53c9c5c0e32c69f9df1822e47671c13e3402c82f (patch) | |
tree | 76aae2cfde109c97451d40b5c6e5063e22690a03 /fs/exportfs/expfs.c | |
parent | a9885444f7ff6e9156adb1adf5558ded9a39ad0a (diff) |
[PATCH] prepare vfs_readdir() callers to returning filldir result
It's not the final state, but it allows moving ->readdir() instances
to passing filldir return value to caller of vfs_readdir().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exportfs/expfs.c')
-rw-r--r-- | fs/exportfs/expfs.c | 7 |
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; |