ext4: add largedir feature
authorArtem Blagodarenko <artem.blagodarenko@gmail.com>
Thu, 22 Jun 2017 01:09:57 +0000 (21:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 01:09:57 +0000 (21:09 -0400)
commite08ac99fa2a25626f573cfa377ef3ddedf2cfe8f
treef8d44249cdc7a8405a7a73344a7dc45b5a2455c3
parent67a7d5f561f469ad2fa5154d2888258ab8e6df7c
ext4: add largedir feature

This INCOMPAT_LARGEDIR feature allows larger directories to be created
in ldiskfs, both with directory sizes over 2GB and and a maximum htree
depth of 3 instead of the current limit of 2. These features are needed
in order to exceed the current limit of approximately 10M entries in a
single directory.

This patch was originally written by Yang Sheng to support the Lustre server.

[ Bumped the credits needed to update an indexed directory -- tytso ]

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@seagate.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.h
fs/ext4/inode.c
fs/ext4/namei.c