Commit e75c11ac authored by Jan Kara's avatar Jan Kara Committed by Greg Kroah-Hartman

reiserfs: Fix quota mount option parsing

commit a06d789b upstream.

When jqfmt mount option is not specified on remount, we mistakenly clear
s_jquota_fmt value stored in superblock. Fix the problem.

CC: reiserfs-devel@vger.kernel.org
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 88e02818
...@@ -1164,6 +1164,7 @@ static void handle_quota_files(struct super_block *s, char **qf_names, ...@@ -1164,6 +1164,7 @@ static void handle_quota_files(struct super_block *s, char **qf_names,
kfree(REISERFS_SB(s)->s_qf_names[i]); kfree(REISERFS_SB(s)->s_qf_names[i]);
REISERFS_SB(s)->s_qf_names[i] = qf_names[i]; REISERFS_SB(s)->s_qf_names[i] = qf_names[i];
} }
if (*qfmt)
REISERFS_SB(s)->s_jquota_fmt = *qfmt; REISERFS_SB(s)->s_jquota_fmt = *qfmt;
} }
#endif #endif
......
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