X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsync.c;h=955aef04da289fecb80f51981ae98f538e6bcdc2;hb=37224470c8c6d90a4062e76a08d4dc1fcf91fc89;hp=8616006d2094818b8796fe998dc72bc2627f8e96;hpb=cd5e25d93e6efeb93db7b6731b0a674495270621;p=linux-2.6 diff --git a/fs/sync.c b/fs/sync.c index 8616006d20..955aef04da 100644 --- 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;