kernel: fix a warning in the O_DIRECT debloat patch
authorFelix Fietkau <nbd@openwrt.org>
Mon, 17 Dec 2012 20:55:49 +0000 (20:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 17 Dec 2012 20:55:49 +0000 (20:55 +0000)
SVN-Revision: 34740

target/linux/generic/patches-3.6/903-debloat_direct_io.patch
target/linux/generic/patches-3.7/903-debloat_direct_io.patch

index 4af67284397c2010827be3692489ee5ece5d6393..4b57a5b054fe1e9f59a3beaafa22fc4cec804711 100644 (file)
@@ -26,7 +26,7 @@
  endif
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
-@@ -2632,20 +2632,36 @@ enum {
+@@ -2632,12 +2632,26 @@ enum {
        DIO_SKIP_HOLES  = 0x02,
  };
  
  
  static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb,
                struct inode *inode, const struct iovec *iov, loff_t offset,
-               unsigned long nr_segs, get_block_t get_block)
- {
-+#ifdef CONFIG_DIRECT_IO
-       return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov,
-                                   offset, nr_segs, get_block, NULL, NULL,
-                                   DIO_LOCKING | DIO_SKIP_HOLES);
-+#endif
- }
- #endif
 --- a/fs/fcntl.c
 +++ b/fs/fcntl.c
 @@ -169,8 +169,10 @@ static int setfl(int fd, struct file * f
index 20b2423af1daaffd1bc90d3e629138ae7a1a62c1..5cc5e78017003a9bcca48df79615c188b31a230e 100644 (file)
@@ -26,7 +26,7 @@
  endif
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
-@@ -2444,20 +2444,36 @@ enum {
+@@ -2444,12 +2444,26 @@ enum {
        DIO_SKIP_HOLES  = 0x02,
  };
  
  
  static inline ssize_t blockdev_direct_IO(int rw, struct kiocb *iocb,
                struct inode *inode, const struct iovec *iov, loff_t offset,
-               unsigned long nr_segs, get_block_t get_block)
- {
-+#ifdef CONFIG_DIRECT_IO
-       return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov,
-                                   offset, nr_segs, get_block, NULL, NULL,
-                                   DIO_LOCKING | DIO_SKIP_HOLES);
-+#endif
- }
- #endif
 --- a/fs/fcntl.c
 +++ b/fs/fcntl.c
 @@ -51,8 +51,10 @@ static int setfl(int fd, struct file * f