Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

eventpoll: drop vestigial __ prefix from ep_remove_{file,epi}()

With __ep_remove() gone, the double-underscore on __ep_remove_file()
and __ep_remove_epi() no longer contrasts with a __-less parent and
just reads as noise. Rename both to ep_remove_file() and
ep_remove_epi(). No functional change.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>

+6 -6
+6 -6
fs/eventpoll.c
··· 830 830 * Called with &file->f_lock held, 831 831 * returns with it released 832 832 */ 833 - static void __ep_remove_file(struct eventpoll *ep, struct epitem *epi, 833 + static void ep_remove_file(struct eventpoll *ep, struct epitem *epi, 834 834 struct file *file) 835 835 { 836 836 struct epitems_head *to_free = NULL; ··· 854 854 free_ephead(to_free); 855 855 } 856 856 857 - static bool __ep_remove_epi(struct eventpoll *ep, struct epitem *epi) 857 + static bool ep_remove_epi(struct eventpoll *ep, struct epitem *epi) 858 858 { 859 859 lockdep_assert_held(&ep->mtx); 860 860 ··· 900 900 spin_unlock(&file->f_lock); 901 901 return; 902 902 } 903 - __ep_remove_file(ep, epi, file); 903 + ep_remove_file(ep, epi, file); 904 904 905 - if (__ep_remove_epi(ep, epi)) 905 + if (ep_remove_epi(ep, epi)) 906 906 WARN_ON_ONCE(ep_refcount_dec_and_test(ep)); 907 907 } 908 908 ··· 1147 1147 ep_unregister_pollwait(ep, epi); 1148 1148 1149 1149 spin_lock(&file->f_lock); 1150 - __ep_remove_file(ep, epi, file); 1151 - dispose = __ep_remove_epi(ep, epi); 1150 + ep_remove_file(ep, epi, file); 1151 + dispose = ep_remove_epi(ep, epi); 1152 1152 1153 1153 mutex_unlock(&ep->mtx); 1154 1154