aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exportfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exportfs')
-rw-r--r--fs/exportfs/expfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c
index 78072e65f926..293bc2e47a73 100644
--- a/fs/exportfs/expfs.c
+++ b/fs/exportfs/expfs.c
@@ -255,7 +255,11 @@ static int get_name(const struct path *path, char *name, struct dentry *child)
255 struct inode *dir = path->dentry->d_inode; 255 struct inode *dir = path->dentry->d_inode;
256 int error; 256 int error;
257 struct file *file; 257 struct file *file;
258 struct getdents_callback buffer; 258 struct getdents_callback buffer = {
259 .ctx.actor = filldir_one,
260 .name = name,
261 .ino = child->d_inode->i_ino
262 };
259 263
260 error = -ENOTDIR; 264 error = -ENOTDIR;
261 if (!dir || !S_ISDIR(dir->i_mode)) 265 if (!dir || !S_ISDIR(dir->i_mode))
@@ -275,11 +279,7 @@ static int get_name(const struct path *path, char *name, struct dentry *child)
275 if (!file->f_op->iterate) 279 if (!file->f_op->iterate)
276 goto out_close; 280 goto out_close;
277 281
278 buffer.name = name;
279 buffer.ino = child->d_inode->i_ino;
280 buffer.found = 0;
281 buffer.sequence = 0; 282 buffer.sequence = 0;
282 buffer.ctx.actor = filldir_one;
283 while (1) { 283 while (1) {
284 int old_seq = buffer.sequence; 284 int old_seq = buffer.sequence;
285 285