Repository navigation
Commit 523f431
committed
ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent()
In nearly all of the calls to ext4_ext_find_extent() where the caller
is trying to recycle the path object, ext4_ext_drop_refs() gets called
to release the buffer heads before the path object gets overwritten.
To simplify things for the callers, and to avoid the possibility of a
memory leak, make ext4_ext_find_extent() responsible for dropping the
buffers.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent dfe5080 commit 523f431
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
871 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
| |||
1356 | 1358 | | |
1357 | 1359 | | |
1358 | 1360 | | |
1359 | | - | |
1360 | 1361 | | |
1361 | 1362 | | |
1362 | 1363 | | |
| |||
1369 | 1370 | | |
1370 | 1371 | | |
1371 | 1372 | | |
1372 | | - | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
| |||
3319 | 3319 | | |
3320 | 3320 | | |
3321 | 3321 | | |
3322 | | - | |
3323 | 3322 | | |
3324 | 3323 | | |
3325 | 3324 | | |
| |||
3718 | 3717 | | |
3719 | 3718 | | |
3720 | 3719 | | |
3721 | | - | |
3722 | 3720 | | |
3723 | 3721 | | |
3724 | 3722 | | |
| |||
3947 | 3945 | | |
3948 | 3946 | | |
3949 | 3947 | | |
3950 | | - | |
3951 | 3948 | | |
3952 | 3949 | | |
3953 | 3950 | | |
| |||
0 commit comments