Btrfs: fix how we deal with the pages array in the write path
authorJosef Bacik <josef@redhat.com>
Tue, 25 Jan 2011 20:10:08 +0000 (15:10 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:16 +0000 (14:21 -0400)
commit4a64001f0047956e283f7ada9843dfc3f3b5d8c8
treef45d7b09808ef70cf31e7da4e5e8b1c0c7521f4a
parentd0215f3e5ebb5803cd6ec067b10c5e00a3ad7cfc
Btrfs: fix how we deal with the pages array in the write path

Really we don't need to memset the pages array at all, since we know how many
pages we're going to use in the array and pass that around.  So don't memset,
just trust we're not idiots and we pass num_pages around properly.

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/file.c