log context name in Context::remove_file for upper FD tracing

This commit is contained in:
2026-07-11 05:53:21 +03:00
parent f821d2190a
commit 8d127d3796
+6 -1
View File
@@ -413,7 +413,12 @@ impl Context {
i: FileHandle,
lock_token: &mut LockToken<L4>,
) -> Option<FileDescriptor> {
self.files.write(lock_token.token()).remove_file(i)
let is_upper = i.get() & syscall::UPPER_FDTBL_TAG != 0;
let result = self.files.write(lock_token.token()).remove_file(i);
if is_upper && result.is_some() {
crate::info!("Context::remove_file ctx={} upper_idx={}", self.name, i.get());
}
result
}
/// Bulk remove files