]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/ceph/super.h
ceph: quota: update MDS when max_bytes is approaching
[mirror_ubuntu-bionic-kernel.git] / fs / ceph / super.h
index 366fe03ccdb5b0d1a88e6cf9ad6f7b9f1fde8b4b..35c2195e3e3db6e7e03897880fbd5b0609ed4ec4 100644 (file)
@@ -1078,5 +1078,11 @@ extern void ceph_fs_debugfs_cleanup(struct ceph_fs_client *client);
 extern void ceph_handle_quota(struct ceph_mds_client *mdsc,
                              struct ceph_mds_session *session,
                              struct ceph_msg *msg);
+extern bool ceph_quota_is_max_files_exceeded(struct inode *inode);
+extern bool ceph_quota_is_same_realm(struct inode *old, struct inode *new);
+extern bool ceph_quota_is_max_bytes_exceeded(struct inode *inode,
+                                            loff_t newlen);
+extern bool ceph_quota_is_max_bytes_approaching(struct inode *inode,
+                                               loff_t newlen);
 
 #endif /* _FS_CEPH_SUPER_H */