From 17128c95f8f06416be8ba71ca0df736cf4ed07ac Mon Sep 17 00:00:00 2001 From: Ryusuke Konishi Date: Sat, 1 May 2010 10:07:07 +0900 Subject: [PATCH] --- yaml --- r: 196021 b: refs/heads/master c: 34cb9b5c973ac06449b96884be932da9a9b99819 h: refs/heads/master i: 196019: 49766ead0c48316333d94451147198437fc41174 v: v3 --- [refs] | 2 +- trunk/fs/nilfs2/super.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 20765412b6eb..a9acd66ff9c3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4e819509cba664e7cbfba5c4d1517df4dfda86f5 +refs/heads/master: 34cb9b5c973ac06449b96884be932da9a9b99819 diff --git a/trunk/fs/nilfs2/super.c b/trunk/fs/nilfs2/super.c index a512c3b2cb77..430a508b212f 100644 --- a/trunk/fs/nilfs2/super.c +++ b/trunk/fs/nilfs2/super.c @@ -242,8 +242,8 @@ int nilfs_commit_super(struct nilfs_sb_info *sbi, int dupsb) int err; /* nilfs->sem must be locked by the caller. */ - if (sbp[0]->s_magic != NILFS_SUPER_MAGIC) { - if (sbp[1] && sbp[1]->s_magic == NILFS_SUPER_MAGIC) + if (sbp[0]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { + if (sbp[1] && sbp[1]->s_magic == cpu_to_le16(NILFS_SUPER_MAGIC)) nilfs_swap_super_block(nilfs); else { printk(KERN_CRIT "NILFS: superblock broke on dev %s\n",