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:29:30 +0000 (08:29 +0200)
commit3a17ca864baffc0c6f6e8aad525aa4365775a193
treef1a727015f39bbbe78809e63c6ddbf78710d39a5
parentcaa4e08253eb3d7cb2e00a20daac240b6ef82197
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