summaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authoryangerkun2019-03-26 15:00:02 +0100
committerJan Kara2019-06-19 15:25:41 +0200
commitc6d9c35d16f1bafd3fec64b865e569e48cbcb514 (patch)
treef53abf2d04fac8a1e17aa32330830a788ee3f279 /fs/notify
parentMerge tag 'for-5.2-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadkernel-qcow2-linux-c6d9c35d16f1bafd3fec64b865e569e48cbcb514.tar.gz
kernel-qcow2-linux-c6d9c35d16f1bafd3fec64b865e569e48cbcb514.tar.xz
kernel-qcow2-linux-c6d9c35d16f1bafd3fec64b865e569e48cbcb514.zip
quota: fix a problem about transfer quota
Run below script as root, dquot_add_space will return -EDQUOT since __dquot_transfer call dquot_add_space with flags=0, and dquot_add_space think it's a preallocation. Fix it by set flags as DQUOT_SPACE_WARN. mkfs.ext4 -O quota,project /dev/vdb mount -o prjquota /dev/vdb /mnt setquota -P 23 1 1 0 0 /dev/vdb dd if=/dev/zero of=/mnt/test-file bs=4K count=1 chattr -p 23 test-file Fixes: 7b9ca4c61bc2 ("quota: Reduce contention on dq_data_lock") Signed-off-by: yangerkun <yangerkun@huawei.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify')
0 files changed, 0 insertions, 0 deletions