diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /block/compat_ioctl.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'block/compat_ioctl.c')
-rw-r--r-- | block/compat_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 9bd086c1a4d5..f26051f44681 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/elevator.h> | 6 | #include <linux/elevator.h> |
7 | #include <linux/fd.h> | 7 | #include <linux/fd.h> |
8 | #include <linux/hdreg.h> | 8 | #include <linux/hdreg.h> |
9 | #include <linux/slab.h> | ||
9 | #include <linux/syscalls.h> | 10 | #include <linux/syscalls.h> |
10 | #include <linux/smp_lock.h> | 11 | #include <linux/smp_lock.h> |
11 | #include <linux/types.h> | 12 | #include <linux/types.h> |
@@ -747,6 +748,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
747 | return compat_put_uint(arg, bdev_io_opt(bdev)); | 748 | return compat_put_uint(arg, bdev_io_opt(bdev)); |
748 | case BLKALIGNOFF: | 749 | case BLKALIGNOFF: |
749 | return compat_put_int(arg, bdev_alignment_offset(bdev)); | 750 | return compat_put_int(arg, bdev_alignment_offset(bdev)); |
751 | case BLKDISCARDZEROES: | ||
752 | return compat_put_uint(arg, bdev_discard_zeroes_data(bdev)); | ||
750 | case BLKFLSBUF: | 753 | case BLKFLSBUF: |
751 | case BLKROSET: | 754 | case BLKROSET: |
752 | case BLKDISCARD: | 755 | case BLKDISCARD: |