Commit 4837c672fd4d43c519d6b53308ee68d45b91b872

Authored by Dave Kleikamp
1 parent fa3241d24c

JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -101,11 +101,11 @@
101 101 jfs_inode->mode2 |= IDIRECTORY;
102 102 jfs_inode->mode2 &= ~JFS_DIRSYNC_FL;
103 103 }
104   - else if (S_ISLNK(mode))
105   - jfs_inode->mode2 &=
106   - ~(JFS_IMMUTABLE_FL|JFS_APPEND_FL);
107   - else
  104 + else {
108 105 jfs_inode->mode2 |= INLINEEA | ISPARSE;
  106 + if (S_ISLNK(mode))
  107 + jfs_inode->mode2 &= ~(JFS_IMMUTABLE_FL|JFS_APPEND_FL);
  108 + }
109 109 jfs_inode->mode2 |= mode;
110 110  
111 111 inode->i_blksize = sb->s_blocksize;