|
@@ -264,6 +264,13 @@ Enomem:
|
|
|
return ERR_PTR(-ENOMEM);
|
|
|
}
|
|
|
|
|
|
+int simple_open(struct inode *inode, struct file *file)
|
|
|
+{
|
|
|
+ if (inode->i_private)
|
|
|
+ file->private_data = inode->i_private;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
|
|
|
{
|
|
|
struct inode *inode = old_dentry->d_inode;
|
|
@@ -984,6 +991,7 @@ EXPORT_SYMBOL(simple_dir_operations);
|
|
|
EXPORT_SYMBOL(simple_empty);
|
|
|
EXPORT_SYMBOL(simple_fill_super);
|
|
|
EXPORT_SYMBOL(simple_getattr);
|
|
|
+EXPORT_SYMBOL(simple_open);
|
|
|
EXPORT_SYMBOL(simple_link);
|
|
|
EXPORT_SYMBOL(simple_lookup);
|
|
|
EXPORT_SYMBOL(simple_pin_fs);
|