commit | 9aead43588f4bdb1bb61e348ad0f33794bbddc0f | [log] [tgz] |
---|---|---|
author | yanhai zhu <zhu.yanhai@gmail.com> | Mon Jan 05 15:49:11 2009 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Mon Jan 05 15:49:11 2009 -0500 |
tree | 294c6333192d15cbf7ff8323920e8bc99e70f91c | |
parent | 52c2617990fed072220708d6b771dc10f37547b0 [diff] [blame] |
Btrfs: Fix memset length in btrfs_file_write Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 5070810..5908521 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c
@@ -1094,7 +1094,7 @@ PAGE_CACHE_SHIFT; WARN_ON(num_pages > nrptrs); - memset(pages, 0, sizeof(pages)); + memset(pages, 0, sizeof(struct page *) * nrptrs); ret = btrfs_check_free_space(root, write_bytes, 0); if (ret)