|
@@ -843,8 +843,13 @@ extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
|
|
|
extern int fcntl_getlease(struct file *filp);
|
|
|
|
|
|
/* fs/sync.c */
|
|
|
-extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte,
|
|
|
- unsigned int flags);
|
|
|
+extern int do_sync_mapping_range(struct address_space *mapping, loff_t offset,
|
|
|
+ loff_t endbyte, unsigned int flags);
|
|
|
+static inline int do_sync_file_range(struct file *file, loff_t offset,
|
|
|
+ loff_t endbyte, unsigned int flags)
|
|
|
+{
|
|
|
+ return do_sync_mapping_range(file->f_mapping, offset, endbyte, flags);
|
|
|
+}
|
|
|
|
|
|
/* fs/locks.c */
|
|
|
extern void locks_init_lock(struct file_lock *);
|