diff options
author | Jan Kara <jack@suse.cz> | 2011-12-21 11:35:34 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-01-09 07:52:09 -0500 |
commit | a06d789b424190e9f59da391681f908486db2554 (patch) | |
tree | 540274351d80680a8fab0325c440dab52170aaae /fs/reiserfs | |
parent | fef2e9f3301934773e4f1b3cc5c7bffb119346b8 (diff) |
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 <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs')
-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 14363b96b6af..f9eaa4a4f5f3 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, | |||
1164 | kfree(REISERFS_SB(s)->s_qf_names[i]); | 1164 | kfree(REISERFS_SB(s)->s_qf_names[i]); |
1165 | REISERFS_SB(s)->s_qf_names[i] = qf_names[i]; | 1165 | REISERFS_SB(s)->s_qf_names[i] = qf_names[i]; |
1166 | } | 1166 | } |
1167 | REISERFS_SB(s)->s_jquota_fmt = *qfmt; | 1167 | if (*qfmt) |
1168 | REISERFS_SB(s)->s_jquota_fmt = *qfmt; | ||
1168 | } | 1169 | } |
1169 | #endif | 1170 | #endif |
1170 | 1171 | ||