diff options
Diffstat (limited to 'fs/exportfs/expfs.c')
| -rw-r--r-- | fs/exportfs/expfs.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 3ef80d000e13..c648a493faf2 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c @@ -248,21 +248,20 @@ struct getdents_callback {   * A rather strange filldir function to capture   * the name matching the specified inode number.   */ -static int filldir_one(struct dir_context *ctx, const char *name, int len, +static bool filldir_one(struct dir_context *ctx, const char *name, int len,  			loff_t pos, u64 ino, unsigned int d_type)  {  	struct getdents_callback *buf =  		container_of(ctx, struct getdents_callback, ctx); -	int result = 0;  	buf->sequence++;  	if (buf->ino == ino && len <= NAME_MAX) {  		memcpy(buf->name, name, len);  		buf->name[len] = '\0';  		buf->found = 1; -		result = -1; +		return false;	// no more  	} -	return result; +	return true;  }  /**  |