Commit 2be39ae7 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: write_super_lockfs should mark superblock clean

  
LVM and EVMS snapshots of JFS filesystems were not mountable because
write_super_lockfs was not marking the volume as clean.  The volume was
otherwise in a consistent state.
parent 7c8c711f
......@@ -382,6 +382,7 @@ static void jfs_write_super_lockfs(struct super_block *sb)
if (!(sb->s_flags & MS_RDONLY)) {
txQuiesce(sb);
lmLogShutdown(log);
updateSuper(sb, FM_CLEAN);
}
}
......@@ -392,6 +393,7 @@ static void jfs_unlockfs(struct super_block *sb)
int rc = 0;
if (!(sb->s_flags & MS_RDONLY)) {
updateSuper(sb, FM_MOUNT);
if ((rc = lmLogInit(log)))
jfs_err("jfs_unlock failed with return code %d", rc);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment