[PATCH 2/3] JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute

[email protected] (Dave Kleikamp) Thu, 16 Feb 2006 10:48:32 -0600 (CST)
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
JFS: Fix regression.  fsck complains if symlinks do not have INLINEEA attribute

Signed-off-by: Dave Kleikamp <[email protected]>

---
commit 4837c672fd4d43c519d6b53308ee68d45b91b872
tree 6aea45f6de8a7320be022ccf5e4c98ddfcf3ea33
parent fa3241d24cf1182b0ffb6e4d412c3bc2a2ab7bf6
author Dave Kleikamp <[email protected]> Fri, 10 Feb 2006 08:11:53 -0600
committer Dave Kleikamp <[email protected]> Fri, 10 Feb 2006 08:11:53 -0600

 fs/jfs/jfs_inode.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c
index ae2772c..ffd2a8a 100644
--- a/fs/jfs/jfs_inode.c
+++ b/fs/jfs/jfs_inode.c
@@ -101,11 +101,11 @@ struct inode *ialloc(struct inode *paren
 		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 SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642