diff options
author | 2022-04-27 16:57:04 +0100 | |
---|---|---|
committer | 2022-05-25 20:45:14 +0200 | |
commit | 55ab5520802016b13098e0ea3794480289659aab (patch) | |
tree | 8587afb5a79b22afb1eeee0e95069f358ec0fff6 /scripts/generate_rust_analyzer.py | |
parent | ceph: fix possible deadlock when holding Fwb to get inline_data (diff) | |
download | wireguard-linux-55ab5520802016b13098e0ea3794480289659aab.tar.xz wireguard-linux-55ab5520802016b13098e0ea3794480289659aab.zip |
ceph: fix statfs for subdir mounts
When doing a mount using as base a directory that has 'max_bytes' quotas
statfs uses that value as the total; if a subdirectory is used instead,
the same 'max_bytes' too in statfs, unless there is another quota set.
Unfortunately, if this subdirectory only has the 'max_files' quota set,
then statfs uses the filesystem total. Fix this by making sure we only
lookup realms that contain the 'max_bytes' quota.
Cc: Ryan Taylor <rptaylor@uvic.ca>
URL: https://tracker.ceph.com/issues/55090
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions