Skip to content

Commit

Permalink
JFS: Fix regression. fsck complains if symlinks do not have INLINEEA …
Browse files Browse the repository at this point in the history
…attribute

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
  • Loading branch information
Dave Kleikamp committed Feb 10, 2006
1 parent fa3241d commit 4837c67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/jfs/jfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
jfs_inode->mode2 |= IDIRECTORY;
jfs_inode->mode2 &= ~JFS_DIRSYNC_FL;
}
else if (S_ISLNK(mode))
jfs_inode->mode2 &=
~(JFS_IMMUTABLE_FL|JFS_APPEND_FL);
else
else {
jfs_inode->mode2 |= INLINEEA | ISPARSE;
if (S_ISLNK(mode))
jfs_inode->mode2 &= ~(JFS_IMMUTABLE_FL|JFS_APPEND_FL);
}
jfs_inode->mode2 |= mode;

inode->i_blksize = sb->s_blocksize;
Expand Down

0 comments on commit 4837c67

Please sign in to comment.