diff options
author | Jan Kara <jack@suse.cz> | 2011-12-21 17:35:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-12 11:40:02 -0800 |
commit | 12e758904f16205036e134bc1015fdaebcb0d18b (patch) | |
tree | 7ea029bcb78eaa18153f1ed94e26ce506ae9f76b /fs | |
parent | 358e3075571c8fa08e274e04d10f00bb88daa4d6 (diff) | |
download | lwn-12e758904f16205036e134bc1015fdaebcb0d18b.tar.gz lwn-12e758904f16205036e134bc1015fdaebcb0d18b.zip |
reiserfs: Fix quota mount option parsing
commit a06d789b424190e9f59da391681f908486db2554 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: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/reiserfs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index f0ad05f38022..d533daf98dd1 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -1149,7 +1149,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 |