summaryrefslogtreecommitdiffstats
path: root/kernel/fs/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/aio.c')
-rw-r--r--kernel/fs/aio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/fs/aio.c b/kernel/fs/aio.c
index 14af01540..c3194afdc 100644
--- a/kernel/fs/aio.c
+++ b/kernel/fs/aio.c
@@ -40,7 +40,7 @@
#include <linux/ramfs.h>
#include <linux/percpu-refcount.h>
#include <linux/mount.h>
-#include <linux/work-simple.h>
+#include <linux/swork.h>
#include <asm/kmap_types.h>
#include <asm/uaccess.h>
@@ -240,7 +240,12 @@ static struct dentry *aio_mount(struct file_system_type *fs_type,
static const struct dentry_operations ops = {
.d_dname = simple_dname,
};
- return mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC);
+ struct dentry *root = mount_pseudo(fs_type, "aio:", NULL, &ops,
+ AIO_RING_MAGIC);
+
+ if (!IS_ERR(root))
+ root->d_sb->s_iflags |= SB_I_NOEXEC;
+ return root;
}
/* aio_setup