Skip to content

Commit

Permalink
[PATCH] sync_file_range(): use unsigned for flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Apr 11, 2006
1 parent 8833d32 commit 5246d05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -126,7 +126,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes,
* `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;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5246d05

Please sign in to comment.