summaryrefslogtreecommitdiffstats
path: root/mm/process_vm_access.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-02-23 12:34:17 +0100
committerDave Chinner <david@fromorbit.com>2015-02-23 12:34:17 +0100
commitdfcc70a8c868fe03276fa59864149708fb41930b (patch)
treef8497e48b51eea39ac3e86e3c8dae5974fb3c159 /mm/process_vm_access.c
parentLinux 4.0-rc1 (diff)
downloadlinux-dfcc70a8c868fe03276fa59864149708fb41930b.tar.xz
linux-dfcc70a8c868fe03276fa59864149708fb41930b.zip
xfs: Fix quota type in quota structures when reusing quota file
For filesystems without separate project quota inode field in the superblock we just reuse project quota file for group quotas (and vice versa) if project quota file is allocated and we need group quota file. When we reuse the file, quota structures on disk suddenly have wrong type stored in d_flags though. Nobody really cares about this (although structure type reported to userspace was wrong as well) except that after commit 14bf61ffe6ac (quota: Switch ->get_dqblk() and ->set_dqblk() to use bytes as space units) assertion in xfs_qm_scall_getquota() started to trigger on xfs/106 test (apparently I was testing without XFS_DEBUG so I didn't notice when submitting the above commit). Fix the problem by properly resetting ddq->d_flags when running quotacheck for a quota file. CC: stable@vger.kernel.org Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'mm/process_vm_access.c')
0 files changed, 0 insertions, 0 deletions