Whamcloud - gitweb
LU-9555 quota: df should return projid-specific values
[fs/lustre-release.git] / lustre / include / lustre_lfsck.h
index 43faaad..64b0d55 100644 (file)
@@ -20,7 +20,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2013, 2016, Intel Corporation.
+ * Copyright (c) 2013, 2017, Intel Corporation.
  */
 /*
  * lustre/include/lustre_lfsck.h
@@ -33,7 +33,7 @@
 #ifndef _LUSTRE_LFSCK_H
 # define _LUSTRE_LFSCK_H
 
-#include <lustre/lustre_lfsck_user.h>
+#include <uapi/linux/lustre/lustre_lfsck_user.h>
 #include <lustre_dlm.h>
 #include <lu_object.h>
 #include <dt_object.h>
@@ -63,8 +63,14 @@ struct lfsck_req_local {
        __u16           lrl_padding0;
        __u32           lrl_padding1;
        struct lu_fid   lrl_fid;
-       struct lu_fid   lrl_fid2;
-       struct lu_fid   lrl_fid3;
+       struct filter_fid lrl_ff_client;
+       struct filter_fid lrl_ff_local;
+};
+
+struct lfsck_layout_dangling_key {
+       struct lu_fid   lldk_fid;
+       __u32           lldk_comp_id;
+       __u32           lldk_ea_off;
 };
 
 typedef int (*lfsck_out_notify)(const struct lu_env *env, void *data,
@@ -95,10 +101,10 @@ int lfsck_query(const struct lu_env *env, struct dt_device *key,
                struct lfsck_request *req, struct lfsck_reply *rep,
                struct lfsck_query *que);
 
-int lfsck_get_speed(struct seq_file *m, struct dt_device *key);
+int lfsck_get_speed(char *buf, struct dt_device *key);
 int lfsck_set_speed(struct dt_device *key, __u32 val);
-int lfsck_get_windows(struct seq_file *m, struct dt_device *key);
-int lfsck_set_windows(struct dt_device *key, int val);
+int lfsck_get_windows(char *buf, struct dt_device *key);
+int lfsck_set_windows(struct dt_device *key, unsigned int val);
 
 int lfsck_dump(struct seq_file *m, struct dt_device *key, enum lfsck_type type);
 
@@ -121,5 +127,4 @@ static inline bool lovea_slot_is_dummy(const struct lov_ost_data_v1 *obj)
 
        return false;
 }
-
 #endif /* _LUSTRE_LFSCK_H */