Change the "clear" folio traces to "endwb" as it's more obvious what it
means.

Signed-off-by: David Howells <[email protected]>
cc: Paulo Alcantara <[email protected]>
cc: [email protected]
cc: [email protected]
---
 fs/netfs/write_collect.c     | 8 ++++----
 include/trace/events/netfs.h | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/fs/netfs/write_collect.c b/fs/netfs/write_collect.c
index c92aba14a0b5..ba2327ce96e8 100644
--- a/fs/netfs/write_collect.c
+++ b/fs/netfs/write_collect.c
@@ -107,7 +107,7 @@ static void netfs_dump_request(const struct 
netfs_io_request *rreq)
  */
 int netfs_folio_written_back(struct folio *folio)
 {
-       enum netfs_folio_trace why = netfs_folio_trace_clear;
+       enum netfs_folio_trace why = netfs_folio_trace_endwb;
        struct inode *inode = folio_inode(folio);
        struct netfs_inode *ictx = netfs_inode(inode);
        struct netfs_folio *finfo;
@@ -130,13 +130,13 @@ int netfs_folio_written_back(struct folio *folio)
                group = finfo->netfs_group;
                gcount++;
                kfree(finfo);
-               why = netfs_folio_trace_clear_s;
+               why = netfs_folio_trace_endwb_s;
                goto end_wb;
        }
 
        if ((group = netfs_folio_group(folio))) {
                if (group == NETFS_FOLIO_COPY_TO_CACHE) {
-                       why = netfs_folio_trace_clear_cc;
+                       why = netfs_folio_trace_endwb_cc;
                        folio_detach_private(folio);
                        goto end_wb;
                }
@@ -149,7 +149,7 @@ int netfs_folio_written_back(struct folio *folio)
                if (!folio_test_dirty(folio)) {
                        folio_detach_private(folio);
                        gcount++;
-                       why = netfs_folio_trace_clear_g;
+                       why = netfs_folio_trace_endwb_g;
                }
        }
 
diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h
index 1c99fa753fe8..f69cac698f74 100644
--- a/include/trace/events/netfs.h
+++ b/include/trace/events/netfs.h
@@ -192,11 +192,11 @@
        EM(netfs_folio_trace_alloc_buffer,      "alloc-buf")    \
        EM(netfs_folio_trace_cancel_copy,       "cancel-copy")  \
        EM(netfs_folio_trace_cancel_store,      "cancel-store") \
-       EM(netfs_folio_trace_clear,             "clear")        \
-       EM(netfs_folio_trace_clear_cc,          "clear-cc")     \
-       EM(netfs_folio_trace_clear_g,           "clear-g")      \
-       EM(netfs_folio_trace_clear_s,           "clear-s")      \
        EM(netfs_folio_trace_end_copy,          "end-copy")     \
+       EM(netfs_folio_trace_endwb,             "endwb")        \
+       EM(netfs_folio_trace_endwb_cc,          "endwb-cc")     \
+       EM(netfs_folio_trace_endwb_g,           "endwb-g")      \
+       EM(netfs_folio_trace_endwb_s,           "endwb-s")      \
        EM(netfs_folio_trace_filled_gaps,       "filled-gaps")  \
        EM(netfs_folio_trace_invalidate_all,    "inval-all")    \
        EM(netfs_folio_trace_invalidate_front,  "inval-front")  \


Reply via email to