aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-04-03 09:08:57 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-03 09:08:57 -0400
commit76467874b83835129dc454e3a7a8e5d1186101b0 (patch)
tree162129f0c36c35be4aa323cf00626db0e804c3fc /include/linux/fs.h
parent8628de0583504138551a05ad44ca388467f0f552 (diff)
parent6246b6128bbe34d0752f119cf7c5111c85fe481d (diff)
Merge branch 'master'
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index e5ce62e9676d..16be62041bfe 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -757,6 +757,13 @@ extern void send_sigio(struct fown_struct *fown, int fd, int band);
757extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); 757extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
758extern int fcntl_getlease(struct file *filp); 758extern int fcntl_getlease(struct file *filp);
759 759
760/* fs/sync.c */
761#define SYNC_FILE_RANGE_WAIT_BEFORE 1
762#define SYNC_FILE_RANGE_WRITE 2
763#define SYNC_FILE_RANGE_WAIT_AFTER 4
764extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte,
765 int flags);
766
760/* fs/locks.c */ 767/* fs/locks.c */
761extern void locks_init_lock(struct file_lock *); 768extern void locks_init_lock(struct file_lock *);
762extern void locks_copy_lock(struct file_lock *, struct file_lock *); 769extern void locks_copy_lock(struct file_lock *, struct file_lock *);
@@ -857,7 +864,7 @@ struct super_block {
857 */ 864 */
858 struct mutex s_vfs_rename_mutex; /* Kludge */ 865 struct mutex s_vfs_rename_mutex; /* Kludge */
859 866
860 /* Granuality of c/m/atime in ns. 867 /* Granularity of c/m/atime in ns.
861 Cannot be worse than a second */ 868 Cannot be worse than a second */
862 u32 s_time_gran; 869 u32 s_time_gran;
863}; 870};
@@ -1416,6 +1423,7 @@ extern void bd_release_from_disk(struct block_device *, struct gendisk *);
1416#endif 1423#endif
1417 1424
1418/* fs/char_dev.c */ 1425/* fs/char_dev.c */
1426#define CHRDEV_MAJOR_HASH_SIZE 255
1419extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *); 1427extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *);
1420extern int register_chrdev_region(dev_t, unsigned, const char *); 1428extern int register_chrdev_region(dev_t, unsigned, const char *);
1421extern int register_chrdev(unsigned int, const char *, 1429extern int register_chrdev(unsigned int, const char *,
@@ -1423,25 +1431,17 @@ extern int register_chrdev(unsigned int, const char *,
1423extern int unregister_chrdev(unsigned int, const char *); 1431extern int unregister_chrdev(unsigned int, const char *);
1424extern void unregister_chrdev_region(dev_t, unsigned); 1432extern void unregister_chrdev_region(dev_t, unsigned);
1425extern int chrdev_open(struct inode *, struct file *); 1433extern int chrdev_open(struct inode *, struct file *);
1426extern int get_chrdev_list(char *); 1434extern void chrdev_show(struct seq_file *,off_t);
1427extern void *acquire_chrdev_list(void);
1428extern int count_chrdev_list(void);
1429extern void *get_next_chrdev(void *);
1430extern int get_chrdev_info(void *, int *, char **);
1431extern void release_chrdev_list(void *);
1432 1435
1433/* fs/block_dev.c */ 1436/* fs/block_dev.c */
1437#define BLKDEV_MAJOR_HASH_SIZE 255
1434#define BDEVNAME_SIZE 32 /* Largest string for a blockdev identifier */ 1438#define BDEVNAME_SIZE 32 /* Largest string for a blockdev identifier */
1435extern const char *__bdevname(dev_t, char *buffer); 1439extern const char *__bdevname(dev_t, char *buffer);
1436extern const char *bdevname(struct block_device *bdev, char *buffer); 1440extern const char *bdevname(struct block_device *bdev, char *buffer);
1437extern struct block_device *lookup_bdev(const char *); 1441extern struct block_device *lookup_bdev(const char *);
1438extern struct block_device *open_bdev_excl(const char *, int, void *); 1442extern struct block_device *open_bdev_excl(const char *, int, void *);
1439extern void close_bdev_excl(struct block_device *); 1443extern void close_bdev_excl(struct block_device *);
1440extern void *acquire_blkdev_list(void); 1444extern void blkdev_show(struct seq_file *,off_t);
1441extern int count_blkdev_list(void);
1442extern void *get_next_blkdev(void *);
1443extern int get_blkdev_info(void *, int *, char **);
1444extern void release_blkdev_list(void *);
1445 1445
1446extern void init_special_inode(struct inode *, umode_t, dev_t); 1446extern void init_special_inode(struct inode *, umode_t, dev_t);
1447 1447