]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: allow directory holes
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Jun 2019 01:19:02 +0000 (21:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:27:23 +0000 (08:27 +0200)
commit5021b7a5bdd6bb859eb648c3da71cdd6aae1d133
tree5b7c2b6dee53c93550279edcd1cb61bd191ffcd0
parent20fea43edf9473eb5b113f0ccac9ae81801a7300
ext4: allow directory holes

commit 4e19d6b65fb4fc42e352ce9883649e049da14743 upstream.

The largedir feature was intended to allow ext4 directories to have
unmapped directory blocks (e.g., directory holes).  And so the
released e2fsprogs no longer enforces this for largedir file systems;
however, the corresponding change to the kernel-side code was not made.

This commit fixes this oversight.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/dir.c
fs/ext4/namei.c