fsnotify.c (0898782247ae533d1f4e47a06bc5d4870931b284) | fsnotify.c (4a0b20be60bf387a1e4f989ff9953c0d1e0858aa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@redhat.com> 4 */ 5 6#include <linux/dcache.h> 7#include <linux/fs.h> 8#include <linux/gfp.h> --- 367 unchanged lines hidden (view full) --- 376 ret = 0; 377out: 378 srcu_read_unlock(&fsnotify_mark_srcu, iter_info.srcu_idx); 379 380 return ret; 381} 382EXPORT_SYMBOL_GPL(fsnotify); 383 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@redhat.com> 4 */ 5 6#include <linux/dcache.h> 7#include <linux/fs.h> 8#include <linux/gfp.h> --- 367 unchanged lines hidden (view full) --- 376 ret = 0; 377out: 378 srcu_read_unlock(&fsnotify_mark_srcu, iter_info.srcu_idx); 379 380 return ret; 381} 382EXPORT_SYMBOL_GPL(fsnotify); 383 |
384extern struct kmem_cache *fsnotify_mark_connector_cachep; 385 | |
386static __init int fsnotify_init(void) 387{ 388 int ret; 389 390 BUILD_BUG_ON(HWEIGHT32(ALL_FSNOTIFY_BITS) != 25); 391 392 ret = init_srcu_struct(&fsnotify_mark_srcu); 393 if (ret) 394 panic("initializing fsnotify_mark_srcu"); 395 396 fsnotify_mark_connector_cachep = KMEM_CACHE(fsnotify_mark_connector, 397 SLAB_PANIC); 398 399 return 0; 400} 401core_initcall(fsnotify_init); | 384static __init int fsnotify_init(void) 385{ 386 int ret; 387 388 BUILD_BUG_ON(HWEIGHT32(ALL_FSNOTIFY_BITS) != 25); 389 390 ret = init_srcu_struct(&fsnotify_mark_srcu); 391 if (ret) 392 panic("initializing fsnotify_mark_srcu"); 393 394 fsnotify_mark_connector_cachep = KMEM_CACHE(fsnotify_mark_connector, 395 SLAB_PANIC); 396 397 return 0; 398} 399core_initcall(fsnotify_init); |