diff options
author | yangerkun <yangerkun@huawei.com> | 2019-03-26 22:00:02 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-21 09:04:28 +0200 |
commit | 8907e1a6bbfc2e61b91a83bf9d55d16c659d1686 (patch) | |
tree | 3e6d5889cbb9a02003301e1894a4285ae43c7d83 /fs/cifs/sess.c | |
parent | 9bd41f5634118567ae19a6c87029579985e12dc6 (diff) | |
download | linux-stable-8907e1a6bbfc2e61b91a83bf9d55d16c659d1686.tar.gz linux-stable-8907e1a6bbfc2e61b91a83bf9d55d16c659d1686.tar.bz2 linux-stable-8907e1a6bbfc2e61b91a83bf9d55d16c659d1686.zip |
quota: fix a problem about transfer quota
[ Upstream commit c6d9c35d16f1bafd3fec64b865e569e48cbcb514 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/cifs/sess.c')
0 files changed, 0 insertions, 0 deletions