diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-05-02 15:53:43 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-05-02 15:53:43 -0400 |
commit | 35b7e476107e3d54f03384e0f2fa3dfd68933353 (patch) | |
tree | 51a7e7cffad309b0aa0d3d054d7ecc5b8be72298 /fs/btrfs/bit-radix.c | |
parent | 090d18753c7fb73f7d846c3a89a50cd35136d144 (diff) |
Btrfs: fix page cache memory leak
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/bit-radix.c')
-rw-r--r-- | fs/btrfs/bit-radix.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/bit-radix.c b/fs/btrfs/bit-radix.c index 9fc42e99c7df..e9ace32d7bae 100644 --- a/fs/btrfs/bit-radix.c +++ b/fs/btrfs/bit-radix.c | |||
@@ -22,9 +22,7 @@ int set_radix_bit(struct radix_tree_root *radix, unsigned long bit) | |||
22 | return -ENOMEM; | 22 | return -ENOMEM; |
23 | memset(bits + 1, 0, BIT_ARRAY_BYTES - sizeof(unsigned long)); | 23 | memset(bits + 1, 0, BIT_ARRAY_BYTES - sizeof(unsigned long)); |
24 | bits[0] = slot; | 24 | bits[0] = slot; |
25 | radix_tree_preload(GFP_NOFS); | ||
26 | ret = radix_tree_insert(radix, slot, bits); | 25 | ret = radix_tree_insert(radix, slot, bits); |
27 | radix_tree_preload_end(); | ||
28 | if (ret) | 26 | if (ret) |
29 | return ret; | 27 | return ret; |
30 | } | 28 | } |