fs: ubifs: move file and file_system_type definitions to linux/fs.h
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
d20f839037
commit
6f332972ef
|
@ -80,45 +80,6 @@ void iput(struct inode *inode);
|
||||||
#define atomic_long_dec(a)
|
#define atomic_long_dec(a)
|
||||||
#define atomic_long_sub(a, b)
|
#define atomic_long_sub(a, b)
|
||||||
|
|
||||||
/* linux/include/dcache.h */
|
|
||||||
|
|
||||||
struct file_system_type {
|
|
||||||
const char *name;
|
|
||||||
int fs_flags;
|
|
||||||
int (*get_sb) (struct file_system_type *, int,
|
|
||||||
const char *, void *, struct vfsmount *);
|
|
||||||
void (*kill_sb) (struct super_block *);
|
|
||||||
struct module *owner;
|
|
||||||
struct file_system_type * next;
|
|
||||||
struct list_head fs_supers;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct file {
|
|
||||||
struct path f_path;
|
|
||||||
#define f_dentry f_path.dentry
|
|
||||||
#define f_vfsmnt f_path.mnt
|
|
||||||
const struct file_operations *f_op;
|
|
||||||
unsigned int f_flags;
|
|
||||||
loff_t f_pos;
|
|
||||||
unsigned int f_uid, f_gid;
|
|
||||||
|
|
||||||
u64 f_version;
|
|
||||||
#ifdef CONFIG_SECURITY
|
|
||||||
void *f_security;
|
|
||||||
#endif
|
|
||||||
/* needed for tty driver, and maybe others */
|
|
||||||
void *private_data;
|
|
||||||
|
|
||||||
#ifdef CONFIG_EPOLL
|
|
||||||
/* Used by fs/eventpoll.c to link all the hooks to this file */
|
|
||||||
struct list_head f_ep_links;
|
|
||||||
spinlock_t f_ep_lock;
|
|
||||||
#endif /* #ifdef CONFIG_EPOLL */
|
|
||||||
#ifdef CONFIG_DEBUG_WRITECOUNT
|
|
||||||
unsigned long f_mnt_write_state;
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get_seconds() not really needed in the read-only implmentation
|
* get_seconds() not really needed in the read-only implmentation
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#include <linux/barebox-wrapper.h>
|
#include <linux/barebox-wrapper.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/time.h>
|
#include <linux/time.h>
|
||||||
|
#include <linux/mount.h>
|
||||||
|
#include <linux/path.h>
|
||||||
|
|
||||||
/* Page cache limit. The filesystems should put that into their s_maxbytes
|
/* Page cache limit. The filesystems should put that into their s_maxbytes
|
||||||
limits, otherwise bad things can happen in VM. */
|
limits, otherwise bad things can happen in VM. */
|
||||||
|
@ -176,6 +178,43 @@ struct super_block {
|
||||||
char *s_options;
|
char *s_options;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct file_system_type {
|
||||||
|
const char *name;
|
||||||
|
int fs_flags;
|
||||||
|
int (*get_sb) (struct file_system_type *, int,
|
||||||
|
const char *, void *, struct vfsmount *);
|
||||||
|
void (*kill_sb) (struct super_block *);
|
||||||
|
struct module *owner;
|
||||||
|
struct file_system_type * next;
|
||||||
|
struct list_head fs_supers;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct file {
|
||||||
|
struct path f_path;
|
||||||
|
#define f_dentry f_path.dentry
|
||||||
|
#define f_vfsmnt f_path.mnt
|
||||||
|
const struct file_operations *f_op;
|
||||||
|
unsigned int f_flags;
|
||||||
|
loff_t f_pos;
|
||||||
|
unsigned int f_uid, f_gid;
|
||||||
|
|
||||||
|
u64 f_version;
|
||||||
|
#ifdef CONFIG_SECURITY
|
||||||
|
void *f_security;
|
||||||
|
#endif
|
||||||
|
/* needed for tty driver, and maybe others */
|
||||||
|
void *private_data;
|
||||||
|
|
||||||
|
#ifdef CONFIG_EPOLL
|
||||||
|
/* Used by fs/eventpoll.c to link all the hooks to this file */
|
||||||
|
struct list_head f_ep_links;
|
||||||
|
spinlock_t f_ep_lock;
|
||||||
|
#endif /* #ifdef CONFIG_EPOLL */
|
||||||
|
#ifdef CONFIG_DEBUG_WRITECOUNT
|
||||||
|
unsigned long f_mnt_write_state;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Inode flags - they have no relation to superblock flags now
|
* Inode flags - they have no relation to superblock flags now
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue