utils/mdadm: Update to 4.0
[openwrt/staging/florian.git] / target / linux / generic / patches-3.18 / 903-debloat_direct_io.patch
index f28c85eeed6295ac749d3346a4ee97266dc50892..166bb5ab64465b06b897421a808744f207e0e53f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/fs/Kconfig
 +++ b/fs/Kconfig
-@@ -62,6 +62,11 @@ config FILE_LOCKING
+@@ -61,6 +61,11 @@ config FILE_LOCKING
            for filesystems like NFS and for the flock() system
            call. Disabling this option saves about 11k.
  
@@ -26,7 +26,7 @@
  endif
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
-@@ -2526,12 +2526,25 @@ enum {
+@@ -2529,12 +2529,25 @@ enum {
        DIO_ASYNC_EXTEND = 0x04,
  };
  
@@ -42,8 +42,8 @@
 +{
 +}
 +static inline ssize_t __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode,
-+      struct block_device *bdev, const struct iovec *iov, loff_t offset,
-+      unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io,
++      struct block_device *bdev, struct iov_iter *iter, loff_t offset,
++      get_block_t get_block, dio_iodone_t end_io,
 +      dio_submit_t submit_io, int flags)
 +{
 +      return -EOPNOTSUPP;