aboutsummaryrefslogtreecommitdiff
path: root/fs/d_path.c
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <darrick.wong@oracle.com> 2019-11-02 09:38:08 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2019-11-04 13:54:58 -0800
commite91ec882af21c0e845bf962b35f3c13482f74b2f (patch)
tree74eb4dd02b63eb15f50bb0415459fa5e6f6e3d21 /fs/d_path.c
parentxfs: cleanup use of the XFS_ALLOC_ flags (diff)
downloadlinux-e91ec882af21c0e845bf962b35f3c13482f74b2f.tar.gz
linux-e91ec882af21c0e845bf962b35f3c13482f74b2f.tar.bz2
linux-e91ec882af21c0e845bf962b35f3c13482f74b2f.zip
xfs: relax shortform directory size checks
Each of the four functions that operate on shortform directories checks that the directory's di_size is at least as large as the shortform directory header. This is now checked by the inode fork verifiers (di_size is used to allocate if_bytes, and if_bytes is checked against the header structure size) so we can turn these checks into ASSERTions. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions