diff options
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 26 |
1 files changed, 4 insertions, 22 deletions
@@ -283,8 +283,8 @@ EXPORT_SYMBOL(generic_write_sync); | |||
283 | * already-instantiated disk blocks, there are no guarantees here that the data | 283 | * already-instantiated disk blocks, there are no guarantees here that the data |
284 | * will be available after a crash. | 284 | * will be available after a crash. |
285 | */ | 285 | */ |
286 | SYSCALL_DEFINE(sync_file_range)(int fd, loff_t offset, loff_t nbytes, | 286 | SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, |
287 | unsigned int flags) | 287 | unsigned int, flags) |
288 | { | 288 | { |
289 | int ret; | 289 | int ret; |
290 | struct fd f; | 290 | struct fd f; |
@@ -365,29 +365,11 @@ out_put: | |||
365 | out: | 365 | out: |
366 | return ret; | 366 | return ret; |
367 | } | 367 | } |
368 | #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS | ||
369 | asmlinkage long SyS_sync_file_range(long fd, loff_t offset, loff_t nbytes, | ||
370 | long flags) | ||
371 | { | ||
372 | return SYSC_sync_file_range((int) fd, offset, nbytes, | ||
373 | (unsigned int) flags); | ||
374 | } | ||
375 | SYSCALL_ALIAS(sys_sync_file_range, SyS_sync_file_range); | ||
376 | #endif | ||
377 | 368 | ||
378 | /* It would be nice if people remember that not all the world's an i386 | 369 | /* It would be nice if people remember that not all the world's an i386 |
379 | when they introduce new system calls */ | 370 | when they introduce new system calls */ |
380 | SYSCALL_DEFINE(sync_file_range2)(int fd, unsigned int flags, | 371 | SYSCALL_DEFINE4(sync_file_range2, int, fd, unsigned int, flags, |
381 | loff_t offset, loff_t nbytes) | 372 | loff_t, offset, loff_t, nbytes) |
382 | { | 373 | { |
383 | return sys_sync_file_range(fd, offset, nbytes, flags); | 374 | return sys_sync_file_range(fd, offset, nbytes, flags); |
384 | } | 375 | } |
385 | #ifdef CONFIG_HAVE_SYSCALL_WRAPPERS | ||
386 | asmlinkage long SyS_sync_file_range2(long fd, long flags, | ||
387 | loff_t offset, loff_t nbytes) | ||
388 | { | ||
389 | return SYSC_sync_file_range2((int) fd, (unsigned int) flags, | ||
390 | offset, nbytes); | ||
391 | } | ||
392 | SYSCALL_ALIAS(sys_sync_file_range2, SyS_sync_file_range2); | ||
393 | #endif | ||