From: Tristan Ye Date: Mon, 23 May 2011 07:57:26 +0000 (+0800) Subject: Ocfs2: Teach local-mounted ocfs2 to handle unwritten_extents correctly. X-Git-Tag: v3.0-rc1~44^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d1c1829ebe7e8bb48a997b39b4865abc9197e5e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Ocfs2: Teach local-mounted ocfs2 to handle unwritten_extents correctly. Oops, local-mounted of 'ocfs2_fops_no_plocks' is just missing the support of unwritten_extents/punching-hole due to no func pointer was given correctly to '.follocate' field. Signed-off-by: Tristan Ye --- diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 89659d6..b1e35a3 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2670,6 +2670,7 @@ const struct file_operations ocfs2_fops_no_plocks = { .flock = ocfs2_flock, .splice_read = ocfs2_file_splice_read, .splice_write = ocfs2_file_splice_write, + .fallocate = ocfs2_fallocate, }; const struct file_operations ocfs2_dops_no_plocks = {