]> err.no Git - linux-2.6/blobdiff - include/linux/fs.h
m68k: remove unused adb.h
[linux-2.6] / include / linux / fs.h
index 86ec3f4a7da6ec0cc33825c6052c9bbe1c4dbf9a..095a9c9a64fb062605f327c7a35f61ae05655909 100644 (file)
@@ -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 *);