]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/ceph/super.h
ceph: quota: update MDS when max_bytes is approaching
authorLuis Henriques <lhenriques@suse.com>
Fri, 5 Jan 2018 10:47:22 +0000 (10:47 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 09:17:52 +0000 (11:17 +0200)
commit1ab302a0cb1455631646aa66b7fc02afd617ea4f
tree73686da6a5aef8ef0190bd8498d3591fc766ddee
parent2b83845f8bd711e66e1c367a9bd56c9df3410236
ceph: quota: update MDS when max_bytes is approaching

When we're reaching the ceph.quota.max_bytes limit, i.e., when writing
more than 1/16th of the space left in a quota realm, update the MDS with
the new file size.

This mirrors the fuse-client approach with commit 122c50315ed1 ("client:
Inform mds file size when approaching quota limit"), in the ceph git tree.

Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c
fs/ceph/quota.c
fs/ceph/super.h