Ocfs2: Teach local-mounted ocfs2 to handle unwritten_extents correctly.
authorTristan Ye <tristan.ye@oracle.com>
Mon, 23 May 2011 07:57:26 +0000 (15:57 +0800)
committerJoel Becker <jlbec@evilplan.org>
Thu, 26 May 2011 04:06:28 +0000 (21:06 -0700)
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 <tristan.ye@oracle.com>
fs/ocfs2/file.c

index 89659d6dc2067276f2cebcea63a9bcc34a0a2486..b1e35a392ca5279d7aa7d645aa75fd8c101c6d05 100644 (file)
@@ -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 = {