file_table.c (f09068b5a114ed28d2df2e82a7d30dde0145dc69) | file_table.c (cd3cec0a02c7338ce2901c574f3935b8f6984aab) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/fs/file_table.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) 7 */ 8 --- 12 unchanged lines hidden (view full) --- 21#include <linux/mount.h> 22#include <linux/capability.h> 23#include <linux/cdev.h> 24#include <linux/fsnotify.h> 25#include <linux/sysctl.h> 26#include <linux/percpu_counter.h> 27#include <linux/percpu.h> 28#include <linux/task_work.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/fs/file_table.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) 7 */ 8 --- 12 unchanged lines hidden (view full) --- 21#include <linux/mount.h> 22#include <linux/capability.h> 23#include <linux/cdev.h> 24#include <linux/fsnotify.h> 25#include <linux/sysctl.h> 26#include <linux/percpu_counter.h> 27#include <linux/percpu.h> 28#include <linux/task_work.h> |
29#include <linux/ima.h> | |
30#include <linux/swap.h> 31#include <linux/kmemleak.h> 32 33#include <linux/atomic.h> 34 35#include "internal.h" 36 37/* sysctl tunables... */ --- 325 unchanged lines hidden (view full) --- 363 /* 364 * The function eventpoll_release() should be the first called 365 * in the file cleanup chain. 366 */ 367 eventpoll_release(file); 368 locks_remove_file(file); 369 370 security_file_release(file); | 29#include <linux/swap.h> 30#include <linux/kmemleak.h> 31 32#include <linux/atomic.h> 33 34#include "internal.h" 35 36/* sysctl tunables... */ --- 325 unchanged lines hidden (view full) --- 362 /* 363 * The function eventpoll_release() should be the first called 364 * in the file cleanup chain. 365 */ 366 eventpoll_release(file); 367 locks_remove_file(file); 368 369 security_file_release(file); |
371 ima_file_free(file); | |
372 if (unlikely(file->f_flags & FASYNC)) { 373 if (file->f_op->fasync) 374 file->f_op->fasync(-1, file, 0); 375 } 376 if (file->f_op->release) 377 file->f_op->release(inode, file); 378 if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL && 379 !(mode & FMODE_PATH))) { --- 111 unchanged lines hidden --- | 370 if (unlikely(file->f_flags & FASYNC)) { 371 if (file->f_op->fasync) 372 file->f_op->fasync(-1, file, 0); 373 } 374 if (file->f_op->release) 375 file->f_op->release(inode, file); 376 if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL && 377 !(mode & FMODE_PATH))) { --- 111 unchanged lines hidden --- |