aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/file.c')
-rw-r--r--fs/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/file.c b/fs/file.c
index 4c6992d8f3b..114fea0a2ce 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -366,7 +366,7 @@ struct files_struct *dup_fd(struct files_struct *oldf, int *errorp)
366 * is partway through open(). So make sure that this 366 * is partway through open(). So make sure that this
367 * fd is available to the new process. 367 * fd is available to the new process.
368 */ 368 */
369 FD_CLR(open_files - i, new_fdt->open_fds); 369 __clear_open_fd(open_files - i, new_fdt);
370 } 370 }
371 rcu_assign_pointer(*new_fds++, f); 371 rcu_assign_pointer(*new_fds++, f);
372 } 372 }
@@ -460,11 +460,11 @@ repeat:
460 if (start <= files->next_fd) 460 if (start <= files->next_fd)
461 files->next_fd = fd + 1; 461 files->next_fd = fd + 1;
462 462
463 FD_SET(fd, fdt->open_fds); 463 __set_open_fd(fd, fdt);
464 if (flags & O_CLOEXEC) 464 if (flags & O_CLOEXEC)
465 FD_SET(fd, fdt->close_on_exec); 465 __set_close_on_exec(fd, fdt);
466 else 466 else
467 FD_CLR(fd, fdt->close_on_exec); 467 __clear_close_on_exec(fd, fdt);
468 error = fd; 468 error = fd;
469#if 1 469#if 1
470 /* Sanity check */ 470 /* Sanity check */