diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-26 20:33:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-06 14:43:50 +0200 |
commit | 99ae5d04065323d25c27af0c92b155d6e17e85a8 (patch) | |
tree | 251c2fb6a21f5fab3fb7c6cd49913b1f503dc322 /include | |
parent | fc90829f1cbc31122da9e9985af65fab02df16f3 (diff) | |
download | barebox-99ae5d04065323d25c27af0c92b155d6e17e85a8.tar.gz barebox-99ae5d04065323d25c27af0c92b155d6e17e85a8.tar.xz |
fs: Add super_operations
Add a struct super_operations we can use later when we get a fs
implementation closer to Linux. Only add the functions we'll likely
need though.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index c1a5802eea..153c464470 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -252,6 +252,11 @@ struct file { #endif }; +struct super_operations { + struct inode *(*alloc_inode)(struct super_block *sb); + void (*destroy_inode)(struct inode *); +}; + /* * Inode flags - they have no relation to superblock flags now */ |