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) ...@@ -382,6 +382,7 @@ static void jfs_write_super_lockfs(struct super_block *sb)
if (!(sb->s_flags & MS_RDONLY)) { if (!(sb->s_flags & MS_RDONLY)) {
txQuiesce(sb); txQuiesce(sb);
lmLogShutdown(log); lmLogShutdown(log);
updateSuper(sb, FM_CLEAN);
} }
} }
...@@ -392,6 +393,7 @@ static void jfs_unlockfs(struct super_block *sb) ...@@ -392,6 +393,7 @@ static void jfs_unlockfs(struct super_block *sb)
int rc = 0; int rc = 0;
if (!(sb->s_flags & MS_RDONLY)) { if (!(sb->s_flags & MS_RDONLY)) {
updateSuper(sb, FM_MOUNT);
if ((rc = lmLogInit(log))) if ((rc = lmLogInit(log)))
jfs_err("jfs_unlock failed with return code %d", rc); jfs_err("jfs_unlock failed with return code %d", rc);
else 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