ocfs2: pass struct file* to ocfs2_prepare_inode_for_write.
commitb890823635e022467b924e3d9da8c5166a4e349c
authorTao Ma <tao.ma@oracle.com>
Thu, 12 Aug 2010 02:27:14 +0000 (12 10:27 +0800)
committerTao Ma <tao.ma@oracle.com>
Thu, 12 Aug 2010 02:39:52 +0000 (12 10:39 +0800)
tree0fbd6c0051c51b0d03df82b8c7203dfc868b383a
parent0378da0fda6edf5aaffda6f1248a78986bd955b5
ocfs2: pass struct file* to ocfs2_prepare_inode_for_write.

struct file * has file_ra_state to store the readahead state
and data. So pass this to ocfs2_prepare_inode_for_write. so
that it can be used in ocfs2_refcount_cow.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/file.c