diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-25 08:02:48 +0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 20:09:37 -0700 |
commit | 293b2f70b4a16a1ca91efd28ef3d6634262c6887 (patch) | |
tree | 4a85078faae7c529fa313d4964e0d6ad0905a612 /fs/ocfs2/file.h | |
parent | 6ae23c5555176c5b23480c9c578ff27437085ba5 (diff) |
ocfs2: Integrate CoW in file write.
When we use mmap, we CoW the refcountd clusters in
ocfs2_write_begin_nolock. While for normal file
io(including directio), we do CoW in
ocfs2_prepare_inode_for_write.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.h')
-rw-r--r-- | fs/ocfs2/file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/file.h b/fs/ocfs2/file.h index 172f9fbc9fc..d66cf4f7c70 100644 --- a/fs/ocfs2/file.h +++ b/fs/ocfs2/file.h @@ -69,4 +69,6 @@ int ocfs2_update_inode_atime(struct inode *inode, int ocfs2_change_file_space(struct file *file, unsigned int cmd, struct ocfs2_space_resv *sr); +int ocfs2_check_range_for_refcount(struct inode *inode, loff_t pos, + size_t count); #endif /* OCFS2_FILE_H */ |