summaryrefslogtreecommitdiff
path: root/lib/ext2fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-06-02 04:13:16 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-06-02 04:13:16 +0000
commitf36d14f5f0c9b97f52fdc2047179457d6fe2c52d (patch)
treeeb32e17ada7a2c91e937d90869c065aa979d2d34 /lib/ext2fs
parent767de097c4b3281f68ca40a0b0762fa98bd61ed1 (diff)
downloade2fsprogs-f36d14f5f0c9b97f52fdc2047179457d6fe2c52d.tar.gz
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.
Diffstat (limited to 'lib/ext2fs')
-rw-r--r--lib/ext2fs/ChangeLog5
-rw-r--r--lib/ext2fs/valid_blk.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index e493baec..a93fb025 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -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:
diff --git a/lib/ext2fs/valid_blk.c b/lib/ext2fs/valid_blk.c
index c6a7c22e..9e50ed5a 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;