]> err.no Git - linux-2.6/commitdiff
JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute
authorDave Kleikamp <shaggy@austin.ibm.com>
Fri, 10 Feb 2006 14:11:53 +0000 (08:11 -0600)
committerDave Kleikamp <shaggy@austin.ibm.com>
Fri, 10 Feb 2006 14:11:53 +0000 (08:11 -0600)
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_inode.c

index ae2772cba2d130fb5b017760304217c9fd05c53c..ffd2a8a007871872dff7b20510dc274046aed5bf 100644 (file)
@@ -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;