diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-20 23:08:32 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:49:29 -0400 |
| commit | 6192269444ebfbfb42e23c7a6a93c76ffe4b5e51 (patch) | |
| tree | ec40fbbad46725d88f2c16b11ff5976d87f497bb /fs/exportfs | |
| parent | 63b6df14134ddd048984c8afadb46e721815bfc6 (diff) | |
introduce a parallel variant of ->iterate()
New method: ->iterate_shared(). Same arguments as in ->iterate(),
called with the directory locked only shared. Once all filesystems
switch, the old one will be gone.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exportfs')
| -rw-r--r-- | fs/exportfs/expfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 402c5caab5ca..207ba8d627ca 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c | |||
| @@ -312,7 +312,7 @@ static int get_name(const struct path *path, char *name, struct dentry *child) | |||
| 312 | goto out; | 312 | goto out; |
| 313 | 313 | ||
| 314 | error = -EINVAL; | 314 | error = -EINVAL; |
| 315 | if (!file->f_op->iterate) | 315 | if (!file->f_op->iterate && !file->f_op->iterate_shared) |
| 316 | goto out_close; | 316 | goto out_close; |
| 317 | 317 | ||
| 318 | buffer.sequence = 0; | 318 | buffer.sequence = 0; |
