aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2010-08-11 22:36:38 -0400
committerTao Ma <tao.ma@oracle.com>2010-08-11 22:39:57 -0400
commit155027121fe52f9b4f25e9d156c22f2f5012e5fe (patch)
tree74067d52b685ab314173e74cc85a43a5d9e20c7d /fs/ocfs2/file.c
parentb890823635e022467b924e3d9da8c5166a4e349c (diff)
ocfs2: Add struct file to ocfs2_refcount_cow.
Add a new parameter 'struct file *' to ocfs2_refcount_cow so that we can add readahead support later. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 5920159a421f..4331f57e9fde 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -361,7 +361,7 @@ static int ocfs2_cow_file_pos(struct inode *inode,
361 if (!(ext_flags & OCFS2_EXT_REFCOUNTED)) 361 if (!(ext_flags & OCFS2_EXT_REFCOUNTED))
362 goto out; 362 goto out;
363 363
364 return ocfs2_refcount_cow(inode, fe_bh, cpos, 1, cpos+1); 364 return ocfs2_refcount_cow(inode, NULL, fe_bh, cpos, 1, cpos+1);
365 365
366out: 366out:
367 return status; 367 return status;
@@ -904,8 +904,8 @@ static int ocfs2_zero_extend_get_range(struct inode *inode,
904 zero_clusters = last_cpos - zero_cpos; 904 zero_clusters = last_cpos - zero_cpos;
905 905
906 if (needs_cow) { 906 if (needs_cow) {
907 rc = ocfs2_refcount_cow(inode, di_bh, zero_cpos, zero_clusters, 907 rc = ocfs2_refcount_cow(inode, NULL, di_bh, zero_cpos,
908 UINT_MAX); 908 zero_clusters, UINT_MAX);
909 if (rc) { 909 if (rc) {
910 mlog_errno(rc); 910 mlog_errno(rc);
911 goto out; 911 goto out;
@@ -2071,7 +2071,7 @@ static int ocfs2_prepare_inode_for_refcount(struct inode *inode,
2071 2071
2072 *meta_level = 1; 2072 *meta_level = 1;
2073 2073
2074 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); 2074 ret = ocfs2_refcount_cow(inode, file, di_bh, cpos, clusters, UINT_MAX);
2075 if (ret) 2075 if (ret)
2076 mlog_errno(ret); 2076 mlog_errno(ret);
2077out: 2077out: