From: Jan Kara Date: Wed, 21 Dec 2011 16:35:34 +0000 (+0100) Subject: reiserfs: Fix quota mount option parsing X-Git-Tag: accepted/tizen/common/20141203.182822~5564^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a06d789b424190e9f59da391681f908486db2554;p=platform%2Fkernel%2Flinux-arm64.git reiserfs: Fix quota mount option parsing When jqfmt mount option is not specified on remount, we mistakenly clear s_jquota_fmt value stored in superblock. Fix the problem. CC: stable@kernel.org CC: reiserfs-devel@vger.kernel.org Signed-off-by: Jan Kara --- diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 14363b9..f9eaa4a 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -1164,7 +1164,8 @@ static void handle_quota_files(struct super_block *s, char **qf_names, kfree(REISERFS_SB(s)->s_qf_names[i]); REISERFS_SB(s)->s_qf_names[i] = qf_names[i]; } - REISERFS_SB(s)->s_jquota_fmt = *qfmt; + if (*qfmt) + REISERFS_SB(s)->s_jquota_fmt = *qfmt; } #endif