reiserfs: Fix quota mount option parsing
commit a06d789b42 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>
This commit is contained in:
parent
2431496fbd
commit
dcc4f0ce22
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue