diff options
author | yanhai zhu <zhu.yanhai@gmail.com> | 2009-01-05 21:49:11 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-05 21:49:11 +0100 |
commit | 9aead43588f4bdb1bb61e348ad0f33794bbddc0f (patch) | |
tree | 294c6333192d15cbf7ff8323920e8bc99e70f91c /fs/btrfs/file.c | |
parent | Btrfs: update directory's size when creating subvol/snapshot (diff) | |
download | linux-9aead43588f4bdb1bb61e348ad0f33794bbddc0f.tar.xz linux-9aead43588f4bdb1bb61e348ad0f33794bbddc0f.zip |
Btrfs: Fix memset length in btrfs_file_write
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 507081059d97..5908521922fb 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1094,7 +1094,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, 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) |