summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/BUILD
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-04-01 12:52:19 -0700
committerShentubot <shentubot@google.com>2019-04-01 12:53:27 -0700
commita4b34e26372528ef60140acef0b7c1ab1934f82a (patch)
tree3d308e07c065191dd0c4f0e30553eb21666c6969 /pkg/sentry/fs/BUILD
parent0327931ca41de892dcdae4fd6a7123cea5b0b2f0 (diff)
gvisor: convert ilist to ilist:generic_list
ilist:generic_list works faster (cl/240185278) and the code looks cleaner without type casting. PiperOrigin-RevId: 241381175 Change-Id: I8487ab1d73637b3e9733c253c56dce9e79f0d35f
Diffstat (limited to 'pkg/sentry/fs/BUILD')
-rw-r--r--pkg/sentry/fs/BUILD14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkg/sentry/fs/BUILD b/pkg/sentry/fs/BUILD
index 6957c1bbe..dda6a0c9f 100644
--- a/pkg/sentry/fs/BUILD
+++ b/pkg/sentry/fs/BUILD
@@ -14,6 +14,7 @@ go_library(
"dirent_cache.go",
"dirent_list.go",
"dirent_state.go",
+ "event_list.go",
"file.go",
"file_operations.go",
"file_overlay.go",
@@ -46,7 +47,6 @@ go_library(
deps = [
"//pkg/abi/linux",
"//pkg/amutex",
- "//pkg/ilist",
"//pkg/log",
"//pkg/metric",
"//pkg/p9",
@@ -83,6 +83,18 @@ go_template_instance(
},
)
+go_template_instance(
+ name = "event_list",
+ out = "event_list.go",
+ package = "fs",
+ prefix = "event",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Linker": "*Event",
+ "Element": "*Event",
+ },
+)
+
go_test(
name = "fs_x_test",
size = "small",