From c62ba94c38516675f02007826a4aab325125aa8d Mon Sep 17 00:00:00 2001 From: Suparna Bhattacharya Date: Wed, 10 Nov 2004 21:29:50 -0800 Subject: [PATCH] Fix O_SYNC speedup for generic_file_write_nolock The O_SYNC speedup patches missed the generic_file_xxx_nolock cases, which means that pages weren't actually getting sync'ed in those cases. This patch fixes that. Signed-off-by: Suparna Bhattacharya Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/writeback.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 1c9994fe2acc..4ab519ad9f55 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -106,6 +106,8 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0); int do_writepages(struct address_space *mapping, struct writeback_control *wbc); int sync_page_range(struct inode *inode, struct address_space *mapping, loff_t pos, size_t count); +int sync_page_range_nolock(struct inode *inode, struct address_space + *mapping, loff_t pos, size_t count); /* pdflush.c */ extern int nr_pdflush_threads; /* Global so it can be exported to sysctl -- cgit v1.2.3