]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: lustre: discard cfs_block_sigsinv()
authorNeilBrown <neilb@suse.com>
Mon, 21 May 2018 04:35:12 +0000 (14:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:29:10 +0000 (18:29 +0200)
commit6afe572bc76688cd840032254217a4877b66e916
treee1021ca8f7a0064d286146e895027228ea91a51d
parent44a3c2637cd2ce59a2312dc886303e32c39d6f01
staging: lustre: discard cfs_block_sigsinv()

cfs_block_sigsinv() and cfs_restore_sigs() are simple
wrappers which save a couple of line of code and
hurt readability for people not familiar with them.
They aren't used often enough to be worthwhile,
so discard them and open-code the functionality.

The sigorsets() call isn't needed as or-ing with current->blocked is
exactly what sigprocmask(SIG_BLOCK) does.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs.h
drivers/staging/lustre/lustre/include/lustre_lib.h
drivers/staging/lustre/lustre/llite/llite_mmap.c