diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index c617ed024df8..39f3e12ca752 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -335,6 +335,7 @@ struct inodes_stat_t { | |||
335 | #define BLKDISCARDZEROES _IO(0x12,124) | 335 | #define BLKDISCARDZEROES _IO(0x12,124) |
336 | #define BLKSECDISCARD _IO(0x12,125) | 336 | #define BLKSECDISCARD _IO(0x12,125) |
337 | #define BLKROTATIONAL _IO(0x12,126) | 337 | #define BLKROTATIONAL _IO(0x12,126) |
338 | #define BLKZEROOUT _IO(0x12,127) | ||
338 | 339 | ||
339 | #define BMAP_IOCTL 1 /* obsolete - kept for compatibility */ | 340 | #define BMAP_IOCTL 1 /* obsolete - kept for compatibility */ |
340 | #define FIBMAP _IO(0x00,1) /* bmap access */ | 341 | #define FIBMAP _IO(0x00,1) /* bmap access */ |
@@ -415,6 +416,7 @@ struct inodes_stat_t { | |||
415 | #include <linux/migrate_mode.h> | 416 | #include <linux/migrate_mode.h> |
416 | #include <linux/uidgid.h> | 417 | #include <linux/uidgid.h> |
417 | #include <linux/lockdep.h> | 418 | #include <linux/lockdep.h> |
419 | #include <linux/percpu-rwsem.h> | ||
418 | 420 | ||
419 | #include <asm/byteorder.h> | 421 | #include <asm/byteorder.h> |
420 | 422 | ||
@@ -724,6 +726,8 @@ struct block_device { | |||
724 | int bd_fsfreeze_count; | 726 | int bd_fsfreeze_count; |
725 | /* Mutex for freeze */ | 727 | /* Mutex for freeze */ |
726 | struct mutex bd_fsfreeze_mutex; | 728 | struct mutex bd_fsfreeze_mutex; |
729 | /* A semaphore that prevents I/O while block size is being changed */ | ||
730 | struct percpu_rw_semaphore bd_block_size_semaphore; | ||
727 | }; | 731 | }; |
728 | 732 | ||
729 | /* | 733 | /* |
@@ -2570,6 +2574,8 @@ extern int generic_segment_checks(const struct iovec *iov, | |||
2570 | unsigned long *nr_segs, size_t *count, int access_flags); | 2574 | unsigned long *nr_segs, size_t *count, int access_flags); |
2571 | 2575 | ||
2572 | /* fs/block_dev.c */ | 2576 | /* fs/block_dev.c */ |
2577 | extern ssize_t blkdev_aio_read(struct kiocb *iocb, const struct iovec *iov, | ||
2578 | unsigned long nr_segs, loff_t pos); | ||
2573 | extern ssize_t blkdev_aio_write(struct kiocb *iocb, const struct iovec *iov, | 2579 | extern ssize_t blkdev_aio_write(struct kiocb *iocb, const struct iovec *iov, |
2574 | unsigned long nr_segs, loff_t pos); | 2580 | unsigned long nr_segs, loff_t pos); |
2575 | extern int blkdev_fsync(struct file *filp, loff_t start, loff_t end, | 2581 | extern int blkdev_fsync(struct file *filp, loff_t start, loff_t end, |