summaryrefslogtreecommitdiffstats
path: root/fs/jfs
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@austin.ibm.com>2006-02-10 15:11:53 +0100
committerDave Kleikamp <shaggy@austin.ibm.com>2006-02-10 15:11:53 +0100
commit4837c672fd4d43c519d6b53308ee68d45b91b872 (patch)
tree6aea45f6de8a7320be022ccf5e4c98ddfcf3ea33 /fs/jfs
parentJFS: ext2 inode attributes for jfs (diff)
downloadlinux-4837c672fd4d43c519d6b53308ee68d45b91b872.tar.xz
linux-4837c672fd4d43c519d6b53308ee68d45b91b872.zip
JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs')
-rw-r--r--fs/jfs/jfs_inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c
index ae2772cba2d1..ffd2a8a00787 100644
--- a/fs/jfs/jfs_inode.c
+++ b/fs/jfs/jfs_inode.c
@@ -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;