diff --git a/fs/file_table.c b/fs/file_table.c
index 17a55b81be2da6bd73eba44ab71f14e8827e6391..0afacf654398c9417dbe8bf170d9faa2605be24e 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -194,6 +194,7 @@ struct file *alloc_file(struct path *path, fmode_t mode,
 	ima_counts_get(file);
 	return file;
 }
+EXPORT_SYMBOL(alloc_file);
 
 void fput(struct file *file)
 {