]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: directly write blocks past i_size
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 18 Mar 2011 02:54:46 +0000 (21:54 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 18 Apr 2011 14:22:52 +0000 (15:22 +0100)
commitfc2a30772c3a7984da2e42392603c7e7c11881e9
tree5d8319628ea6d9d5099b7ebd669204ed0070548b
parent9ca43e9191f7039d3ecca0d93727ec544555947e
GFS2: directly write blocks past i_size

GFS2 was relying on the writepage code to write out the zeroed data for
fallocate.  However, with FALLOC_FL_KEEP_SIZE set, this may be past i_size.
If it is, it will be ignored.  To work around this, gfs2 now calls
write_dirty_buffer directly on the buffer_heads when FALLOC_FL_KEEP_SIZE
is set, and it's writing past i_size.

This version is just a cleanup of my last version

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/file.c