diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-09-01 14:40:09 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-09-01 14:40:09 -0400 |
commit | 10809df84a4d868db61af621bae3658494165279 (patch) | |
tree | 07058f847b286c07f27c82033e7b2d8c0fc1af7a /fs/ext4/ext4_extents.h | |
parent | b7ea89ad0a6b855172158a999d3f5008403f4011 (diff) | |
download | linux-rpi-10809df84a4d868db61af621bae3658494165279.tar.gz linux-rpi-10809df84a4d868db61af621bae3658494165279.tar.bz2 linux-rpi-10809df84a4d868db61af621bae3658494165279.zip |
ext4: teach ext4_ext_find_extent() to realloc path if necessary
This adds additional safety in case for some reason we end reusing a
path structure which isn't big enough for current depth of the inode.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_extents.h')
-rw-r--r-- | fs/ext4/ext4_extents.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4_extents.h b/fs/ext4/ext4_extents.h index a867f5ca9991..3c9381547094 100644 --- a/fs/ext4/ext4_extents.h +++ b/fs/ext4/ext4_extents.h @@ -123,6 +123,7 @@ find_ext4_extent_tail(struct ext4_extent_header *eh) struct ext4_ext_path { ext4_fsblk_t p_block; __u16 p_depth; + __u16 p_maxdepth; struct ext4_extent *p_ext; struct ext4_extent_idx *p_idx; struct ext4_extent_header *p_hdr; |