log context name in Context::remove_file for upper FD tracing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user