Skip to content

Commit 7b3a047

Browse files
committed
fs: Remove CONFIG_SRCU
Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in conditional compilation based on CONFIG_SRCU. Therefore, remove the #ifdef and throw away the #else clause. Signed-off-by: Paul E. McKenney <[email protected]> Cc: Jeff Layton <[email protected]> Cc: Chuck Lever <[email protected]> Cc: Alexander Viro <[email protected]> Cc: <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: John Ogness <[email protected]>
1 parent a8f0ff9 commit 7b3a047

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

fs/locks.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,6 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp,
18891889
}
18901890
EXPORT_SYMBOL(generic_setlease);
18911891

1892-
#if IS_ENABLED(CONFIG_SRCU)
18931892
/*
18941893
* Kernel subsystems can register to be notified on any attempt to set
18951894
* a new lease with the lease_notifier_chain. This is used by (e.g.) nfsd
@@ -1923,30 +1922,6 @@ void lease_unregister_notifier(struct notifier_block *nb)
19231922
}
19241923
EXPORT_SYMBOL_GPL(lease_unregister_notifier);
19251924

1926-
#else /* !IS_ENABLED(CONFIG_SRCU) */
1927-
static inline void
1928-
lease_notifier_chain_init(void)
1929-
{
1930-
}
1931-
1932-
static inline void
1933-
setlease_notifier(long arg, struct file_lock *lease)
1934-
{
1935-
}
1936-
1937-
int lease_register_notifier(struct notifier_block *nb)
1938-
{
1939-
return 0;
1940-
}
1941-
EXPORT_SYMBOL_GPL(lease_register_notifier);
1942-
1943-
void lease_unregister_notifier(struct notifier_block *nb)
1944-
{
1945-
}
1946-
EXPORT_SYMBOL_GPL(lease_unregister_notifier);
1947-
1948-
#endif /* IS_ENABLED(CONFIG_SRCU) */
1949-
19501925
/**
19511926
* vfs_setlease - sets a lease on an open file
19521927
* @filp: file pointer

0 commit comments

Comments
 (0)