diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-12 09:13:27 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-12 09:13:27 -0700 |
| commit | 2d10c0bb22040afab5bb81792fb890823d02cab7 (patch) | |
| tree | 7b709076a922169d521b5cbd1d377bb34220d0d1 | |
| parent | 699155e3a63c395c1769769a06ad0284db7a95dd (diff) | |
[PATCH] ext3: htree memory leak fix
From Alex Tomas
We started using ext3_dx_readdir() for all dir_index filesystems, because
we want to return entries in hash order always, so that readdir with a
partial read + new entry added before next readdir won't be crazy.
So we now need to free the structure at filp->pricate_data even against
non-indexed directories.
| -rw-r--r-- | fs/ext3/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/dir.c b/fs/ext3/dir.c index 2b387b5649e1..b00bec6fe0ce 100644 --- a/fs/ext3/dir.c +++ b/fs/ext3/dir.c @@ -509,7 +509,7 @@ finished: static int ext3_release_dir (struct inode * inode, struct file * filp) { - if (is_dx(inode) && filp->private_data) + if (filp->private_data) ext3_htree_free_dir_info(filp->private_data); return 0; |
