io_uring: ensure that SQPOLL thread is started for exit
[linux-2.6-microblaze.git] / fs / nsfs.c
index 4f12057..800c1d0 100644 (file)
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -229,6 +229,11 @@ int ns_get_name(char *buf, size_t size, struct task_struct *task,
        return res;
 }
 
+bool proc_ns_file(const struct file *file)
+{
+       return file->f_op == &ns_file_operations;
+}
+
 struct file *proc_ns_fget(int fd)
 {
        struct file *file;