]> Git Repo - linux.git/commitdiff
JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute
authorDave Kleikamp <[email protected]>
Fri, 10 Feb 2006 14:11:53 +0000 (08:11 -0600)
committerDave Kleikamp <[email protected]>
Fri, 10 Feb 2006 14:11:53 +0000 (08:11 -0600)
Signed-off-by: Dave Kleikamp <[email protected]>
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;
This page took 0.05068 seconds and 4 git commands to generate.