diff options
| author | Vadim Lobanov <[email protected]> | 2006-12-10 02:21:17 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-12-10 09:57:22 -0800 |
| commit | 4fd45812cbe875a620c86a096a5d46c742694b7e (patch) | |
| tree | 8d2c99caa718da6cda87229076adf708494ff251 /include/linux/debugobjects.h | |
| parent | bbea9f69668a3d0cf9feba15a724cd02896f8675 (diff) | |
[PATCH] fdtable: Remove the free_files field
An fdtable can either be embedded inside a files_struct or standalone (after
being expanded). When an fdtable is being discarded after all RCU references
to it have expired, we must either free it directly, in the standalone case,
or free the files_struct it is contained within, in the embedded case.
Currently the free_files field controls this behavior, but we can get rid of
it entirely, as all the necessary information is already recorded. We can
distinguish embedded and standalone fdtables using max_fds, and if it is
embedded we can divine the relevant files_struct using container_of().
Signed-off-by: Vadim Lobanov <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Dipankar Sarma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions