Whamcloud - gitweb
ChangeLog, valid_blk.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jun 2001 04:13:16 +0000 (04:13 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jun 2001 04:13:16 +0000 (04:13 +0000)
  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
lib/ext2fs/valid_blk.c

index e493bae..a93fb02 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-02  Theodore Tso  <tytso@valinux.com>
+
+       * 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  <tytso@valinux.com>
 
        * Makefile.in, dosio.c, ext2_fs.h, ext2_types.h.in, ext2fs.h:
index c6a7c22..9e50ed5 100644 (file)
@@ -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;