RTAS'20
aboutsummaryrefslogblamecommitdiffstats
path: root/fs/internal.h
blob: 4657424074668dcb933c8d375244b1d3b9d72561 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                
                   
                        
                    
            
             
 


              
                   

                                         

                                                                
     


                                        
 



                                                                      
      
 





                                     


                                                   


                                                                                          

  


                                                                    
                                                           
 
                                                  
                                                              
 
                                                             
 
                                  
 



                                                 
 


              
                                                                     



               
                                         




                                                                 
                                                       

                                                          
                                                 



         

                      
                     

                     
                         
  
                                                                    
                                             
                                                                         
                                                         
 

                                                                          
                                               
 


          
                                     

                                                                             
                                               
 




                                                   
                                      
                                               
                                                         




                                                                           
                                                

                                                                             




                                                                             
                                                                      

  





                                                                             


                                                  
/* fs/ internal definitions
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

struct super_block;
struct file_system_type;
struct linux_binprm;
struct path;
struct mount;

/*
 * block_dev.c
 */
#ifdef CONFIG_BLOCK
extern void __init bdev_cache_init(void);

extern int __sync_blockdev(struct block_device *bdev, int wait);

#else
static inline void bdev_cache_init(void)
{
}

static inline int __sync_blockdev(struct block_device *bdev, int wait)
{
	return 0;
}
#endif

/*
 * char_dev.c
 */
extern void __init chrdev_init(void);

/*
 * namei.c
 */
extern int __inode_permission(struct inode *, int);
extern int user_path_mountpoint_at(int, const char __user *, unsigned int, struct path *);
extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
			   const char *, unsigned int, struct path *);

/*
 * namespace.c
 */
extern int copy_mount_options(const void __user *, unsigned long *);
extern int copy_mount_string(const void __user *, char **);

extern struct vfsmount *lookup_mnt(struct path *);
extern int finish_automount(struct vfsmount *, struct path *);

extern int sb_prepare_remount_readonly(struct super_block *);

extern void __init mnt_init(void);

extern int __mnt_want_write(struct vfsmount *);
extern int __mnt_want_write_file(struct file *);
extern void __mnt_drop_write(struct vfsmount *);
extern void __mnt_drop_write_file(struct file *);

/*
 * fs_struct.c
 */
extern void chroot_fs_refs(const struct path *, const struct path *);

/*
 * file_table.c
 */
extern struct file *get_empty_filp(void);

/*
 * super.c
 */