]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: rewrite fallocate code to write blocks directly
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 12 Sep 2011 23:15:24 +0000 (18:15 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Oct 2011 08:08:16 +0000 (09:08 +0100)
commit4547a44c369a5c8c706a812e010411812d78bcb7
tree9f67f5cbd3a07288fae525cf6fdc20f9d0b50d91
parent187680994129ac3eb26e26ae803c7608b52decb1
GFS2: rewrite fallocate code to write blocks directly

GFS2's fallocate code currently goes through the page cache. Since it's only
writing to the end of the file or to holes in it, it doesn't need to, and it
was causing issues on low memory environments. This patch pulls in some of
Steve's block allocation work, and uses it to simply allocate the blocks for
the file, and zero them out at allocation time.  It provides a slight
performance increase, and it dramatically simplifies the code.

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