projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] files: break up files struct
[deliverable/linux.git]
/
fs
/
locks.c
diff --git
a/fs/locks.c
b/fs/locks.c
index 11956b6179ff81a9924ab099896a07ba3892bc0b..c2c09b4798d606b4bc9e5d56a518beef021543f3 100644
(file)
--- a/
fs/locks.c
+++ b/
fs/locks.c
@@
-2198,21
+2198,23
@@
void steal_locks(fl_owner_t from)
{
struct files_struct *files = current->files;
int i, j;
{
struct files_struct *files = current->files;
int i, j;
+ struct fdtable *fdt;
if (from == files)
return;
lock_kernel();
j = 0;
if (from == files)
return;
lock_kernel();
j = 0;
+ fdt = files_fdtable(files);
for (;;) {
unsigned long set;
i = j * __NFDBITS;
for (;;) {
unsigned long set;
i = j * __NFDBITS;
- if (i >= f
iles->max_fdset || i >= files
->max_fds)
+ if (i >= f
dt->max_fdset || i >= fdt
->max_fds)
break;
break;
- set = f
iles
->open_fds->fds_bits[j++];
+ set = f
dt
->open_fds->fds_bits[j++];
while (set) {
if (set & 1) {
while (set) {
if (set & 1) {
- struct file *file = f
iles
->fd[i];
+ struct file *file = f
dt
->fd[i];
if (file)
__steal_locks(file, from);
}
if (file)
__steal_locks(file, from);
}
This page took
0.027264 seconds
and
5
git commands to generate.