[PATCH] sync_file_range(): use unsigned for flags
authorAndrew Morton <akpm@osdl.org>
Tue, 11 Apr 2006 05:53:57 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:40 +0000 (06:18 -0700)
Ulrich suggested that the `flags' arg to sync_file_range() become unsigned.

Cc: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/sync.c
include/linux/fs.h
include/linux/syscalls.h

index 8616006d2094818b8796fe998dc72bc2627f8e96..aab5ffe77e9fd67e3ac9173a4cb9488fd393f074 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;
@@ -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;
index 1e9ebaba07b7a2d1c8436ef95cdb5b5799dc1fce..504dcf5b297b9fed1b8cc51a01a3375843baf697 100644 (file)
@@ -762,7 +762,7 @@ extern int fcntl_getlease(struct file *filp);
 #define SYNC_FILE_RANGE_WRITE          2
 #define SYNC_FILE_RANGE_WAIT_AFTER     4
 extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte,
-                       int flags);
+                       unsigned int flags);
 
 /* fs/locks.c */
 extern void locks_init_lock(struct file_lock *);
index 5717147596b6c0918829bd5e48b2ea23d783ff5d..89c4180d42f55a747f926cccbe3bffdfcffae98c 100644 (file)
@@ -572,6 +572,6 @@ asmlinkage long sys_unshare(unsigned long unshare_flags);
 asmlinkage long sys_splice(int fdin, int fdout, size_t len,
                                unsigned int flags);
 asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
-                                       int flags);
+                                       unsigned int flags);
 
 #endif