diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-22 22:22:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 04:57:05 -0400 |
commit | ac6614b76478e68173ccf7ad4e9e98035cc9c21d (patch) | |
tree | ed2c996b6e64e44c5a752dfafd650bfa1eb7f035 /fs/exportfs | |
parent | 2233f31aade393641f0eaed43a71110e629bb900 (diff) |
[readdir] constify ->actor
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exportfs')
-rw-r--r-- | fs/exportfs/expfs.c | 10 |
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 | ||