Commit 72f23498 authored by Dave Kleikamp's avatar Dave Kleikamp

Merge jfs@jfs.bkbits.net:linux-2.5

into shaggy.austin.ibm.com:/shaggy/bk/jfs-2.5
parents 621ce5a8 241a4349
......@@ -59,7 +59,7 @@ struct inode *jfs_iget(struct super_block *sb, ino_t ino)
inode->i_mapping->a_ops = &jfs_aops;
inode->i_mapping->gfp_mask = GFP_NOFS;
} else if (S_ISLNK(inode->i_mode)) {
if (inode->i_size > IDATASIZE) {
if (inode->i_size >= IDATASIZE) {
inode->i_op = &page_symlink_inode_operations;
inode->i_mapping->a_ops = &jfs_aops;
} else
......
......@@ -602,7 +602,7 @@ s64 commitZeroLink(tid_t tid, struct inode *ip)
break;
case S_IFLNK:
/* fast symbolic link */
if (ip->i_size <= 256) {
if (ip->i_size < IDATASIZE) {
ip->i_size = 0;
return 0;
}
......@@ -674,7 +674,7 @@ int freeZeroLink(struct inode *ip)
break;
case S_IFLNK:
/* if its contained in inode nothing to do */
if (ip->i_size <= 256)
if (ip->i_size < IDATASIZE)
return 0;
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment