diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fadvise.h | 6 | ||||
-rw-r--r-- | include/linux/fs.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fadvise.h b/include/linux/fadvise.h index e8e747139b9a..b2913bba35d8 100644 --- a/include/linux/fadvise.h +++ b/include/linux/fadvise.h | |||
@@ -18,4 +18,10 @@ | |||
18 | #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ | 18 | #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | /* | ||
22 | * Linux-specific fadvise() extensions: | ||
23 | */ | ||
24 | #define LINUX_FADV_ASYNC_WRITE 32 /* Start writeout on range */ | ||
25 | #define LINUX_FADV_WRITE_WAIT 33 /* Wait upon writeout to range */ | ||
26 | |||
21 | #endif /* FADVISE_H_INCLUDED */ | 27 | #endif /* FADVISE_H_INCLUDED */ |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 65e6df247ea5..0ad70c1e5e55 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1473,6 +1473,11 @@ extern int filemap_fdatawait(struct address_space *); | |||
1473 | extern int filemap_write_and_wait(struct address_space *mapping); | 1473 | extern int filemap_write_and_wait(struct address_space *mapping); |
1474 | extern int filemap_write_and_wait_range(struct address_space *mapping, | 1474 | extern int filemap_write_and_wait_range(struct address_space *mapping, |
1475 | loff_t lstart, loff_t lend); | 1475 | loff_t lstart, loff_t lend); |
1476 | extern int wait_on_page_writeback_range(struct address_space *mapping, | ||
1477 | pgoff_t start, pgoff_t end); | ||
1478 | extern int __filemap_fdatawrite_range(struct address_space *mapping, | ||
1479 | loff_t start, loff_t end, int sync_mode); | ||
1480 | |||
1476 | extern void sync_supers(void); | 1481 | extern void sync_supers(void); |
1477 | extern void sync_filesystems(int wait); | 1482 | extern void sync_filesystems(int wait); |
1478 | extern void emergency_sync(void); | 1483 | extern void emergency_sync(void); |