From f36d14f5f0c9b97f52fdc2047179457d6fe2c52d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 2 Jun 2001 04:13:16 +0000 Subject: [PATCH] ChangeLog, valid_blk.c: valid_blk.c (ext2fs_inode_has_valid_blocks): Only check i_blocks for a symlink to determine whether it is a fast symlink. --- lib/ext2fs/ChangeLog | 5 +++++ lib/ext2fs/valid_blk.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index e493bae..a93fb02 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,8 @@ +2001-06-02 Theodore Tso + + * valid_blk.c (ext2fs_inode_has_valid_blocks): Only check i_blocks + for a symlink to determine whether it is a fast symlink. + 2001-06-01 Theodore Tso * Makefile.in, dosio.c, ext2_fs.h, ext2_types.h.in, ext2fs.h: diff --git a/lib/ext2fs/valid_blk.c b/lib/ext2fs/valid_blk.c index c6a7c22..9e50ed5 100644 --- a/lib/ext2fs/valid_blk.c +++ b/lib/ext2fs/valid_blk.c @@ -38,8 +38,7 @@ int ext2fs_inode_has_valid_blocks(struct ext2_inode *inode) * If the symbolic link is a "fast symlink", then the symlink * target is stored in the block entries. */ - if (LINUX_S_ISLNK (inode->i_mode) && inode->i_blocks == 0 && - inode->i_size < EXT2_N_BLOCKS * sizeof (unsigned long)) + if (LINUX_S_ISLNK (inode->i_mode) && inode->i_blocks == 0) return 0; return 1; -- 1.8.3.1