X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Flocks.c;h=c2c09b4798d606b4bc9e5d56a518beef021543f3;hb=63f3d1df1ad276a30b75339dd682a6e1f9d0c181;hp=11956b6179ff81a9924ab099896a07ba3892bc0b;hpb=d6ac1a7910d22626bc77e73db091e00b810715f4;p=powerpc.git diff --git a/fs/locks.c b/fs/locks.c index 11956b6179..c2c09b4798 100644 --- 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 fdtable *fdt; if (from == files) return; lock_kernel(); j = 0; + fdt = files_fdtable(files); for (;;) { unsigned long set; i = j * __NFDBITS; - if (i >= files->max_fdset || i >= files->max_fds) + if (i >= fdt->max_fdset || i >= fdt->max_fds) break; - set = files->open_fds->fds_bits[j++]; + set = fdt->open_fds->fds_bits[j++]; while (set) { if (set & 1) { - struct file *file = files->fd[i]; + struct file *file = fdt->fd[i]; if (file) __steal_locks(file, from); }