mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
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>
This commit is contained in:
parent
fef2e9f330
commit
a06d789b42
@ -1164,7 +1164,8 @@ 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];
|
||||||
}
|
}
|
||||||
REISERFS_SB(s)->s_jquota_fmt = *qfmt;
|
if (*qfmt)
|
||||||
|
REISERFS_SB(s)->s_jquota_fmt = *qfmt;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user