summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSuparna Bhattacharya <suparna@in.ibm.com>2004-11-10 21:29:50 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-10 21:29:50 -0800
commitc62ba94c38516675f02007826a4aab325125aa8d (patch)
tree961458223b471431a9c81edf71317c44bf70f8ab /include
parenta370025d1ed83b2b8202c4fefe4ea465bf22f10a (diff)
[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 <suparna@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/writeback.h2
1 files changed, 2 insertions, 0 deletions
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