summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/aops.h
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-05-06 04:04:03 +0200
committerMark Fasheh <mark.fasheh@oracle.com>2006-05-17 23:38:47 +0200
commit53013cba4118a5cfe8f7c7ea5e5bc1c48b160f76 (patch)
tree5170ed12fbe07b5e8557e61952aa27c25034bd7a /fs/ocfs2/aops.h
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/spi-2.6 (diff)
downloadlinux-53013cba4118a5cfe8f7c7ea5e5bc1c48b160f76.tar.xz
linux-53013cba4118a5cfe8f7c7ea5e5bc1c48b160f76.zip
ocfs2: take data locks around extend
We need to take a data lock around extends to protect the pages that ocfs2_zero_extend is going to be pulling into the page cache. Otherwise an extend on one node might populate the page cache with data pages that have no lock coverage. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/aops.h')
-rw-r--r--fs/ocfs2/aops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/aops.h b/fs/ocfs2/aops.h
index d40456d509a0..e88c3f0b8fa9 100644
--- a/fs/ocfs2/aops.h
+++ b/fs/ocfs2/aops.h
@@ -22,8 +22,8 @@
#ifndef OCFS2_AOPS_H
#define OCFS2_AOPS_H
-int ocfs2_prepare_write(struct file *file, struct page *page,
- unsigned from, unsigned to);
+int ocfs2_prepare_write_nolock(struct inode *inode, struct page *page,
+ unsigned from, unsigned to);
struct ocfs2_journal_handle *ocfs2_start_walk_page_trans(struct inode *inode,
struct page *page,