[XFRM] STATE: Add a hook to obtain local/remote outbound address.
[pandora-kernel.git] / fs / sync.c
index 8616006..955aef0 100644 (file)
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -61,7 +61,7 @@
  * will be available after a crash.
  */
 asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
-                                       int flags)
+                                       unsigned int flags)
 {
        int ret;
        struct file *file;
@@ -100,7 +100,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
        }
 
        if (nbytes == 0)
-               endbyte = -1;
+               endbyte = LLONG_MAX;
        else
                endbyte--;              /* inclusive */
 
@@ -126,7 +126,7 @@ out:
  * `endbyte' is inclusive
  */
 int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte,
-                       int flags)
+                       unsigned int flags)
 {
        int ret;
        struct address_space *mapping;