xfs/533: Delete test since directory's extent count can never overflow
authorChandan Babu R <chandan.babu@oracle.com>
Fri, 6 May 2022 09:57:46 +0000 (15:27 +0530)
committerZorro Lang <zlang@kernel.org>
Sat, 7 May 2022 13:02:37 +0000 (21:02 +0800)
commit9ae10c882550c48868e7c0baff889bb1a7c7c8e9
tree821ae1694575530c71129194a40d41043f2ed262
parent441606d2868165ad19a3e32caade9c0a3b2e84f4
xfs/533: Delete test since directory's extent count can never overflow

The maximum file size that can be represented by the data fork extent counter
in the worst case occurs when all extents are 1 block in length and each block
is 1KB in size.

With XFS_MAX_EXTCNT_DATA_FORK_SMALL representing maximum extent count and with
1KB sized blocks, a file can reach upto,
(2^31) * 1KB = 2TB

This is much larger than the theoretical maximum size of a directory
i.e. XFS_DIR2_SPACE_SIZE * 3 = ~96GB.

Since a directory can never overflow its data fork extent counter, the xfs
kernel driver removed code which checked for such a situation before any
directory modification operation could be executed. Instead, the kernel driver
verifies the sanity of directory's data fork extent counter when the inode is
read from disk.

This commit removes the test xfs/533 due to the reasons mentioned above.

Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/533 [deleted file]
tests/xfs/533.out [deleted file]