introduce ->iterate(), ctx->pos, dir_emit()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / exportfs / expfs.c
index 95b32a6fb3b769314d6b81d2b03ce214161cd75f..34e0905df1cbc7a9fef27537b38884700ae58eed 100644 (file)
@@ -272,7 +272,7 @@ static int get_name(const struct path *path, char *name, struct dentry *child)
                goto out;
 
        error = -EINVAL;
-       if (!file->f_op->readdir)
+       if (!file->f_op->readdir && !file->f_op->iterate)
                goto out_close;
 
        buffer.name = name;