]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: drop redundant checks of symlink i_size
authorEric Biggers <ebiggers@google.com>
Sat, 3 Mar 2018 00:59:20 +0000 (16:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Mar 2018 22:10:16 +0000 (17:10 -0500)
commit751efa803bde8b8f150d97e3208a1ce15a9da0bc
treee7db6066c0bbc3705488a1d24706a336735f447d
parent203be6feb53e545bd5972b99713dd1f95c2b2763
e2fsck: drop redundant checks of symlink i_size

e2fsck_pass1_check_symlink() verifies that the symlink inode's i_size is
less than the buffer length (60 for fast symlinks, fs->blocksize for
slow symlinks).  But it also verifies that len == i_size &&
len < buflen, which already implies i_size < buflen.  Thus, remove the
redundant checks of i_size.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c