modprobe: clean up mit_ignore_loaded flag in rmmod()
commit6c31b6a061020a0b6af0aba28674a2e37516e6b3
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Wed, 30 Sep 2009 16:22:11 +0000 (30 17:22 +0100)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 25 Feb 2010 15:29:23 +0000 (25 15:29 +0000)
treedd21a5eb2fd72fff12a38c820f06d431a86e2c0c
parentd64f843b5aeec65a725b7eed267b6a32cad190a2
modprobe: clean up mit_ignore_loaded flag in rmmod()

handle_module() clears mit_ignore_loaded before calling rmmod(). So we
didn't really want to set it in the first place!  Also, rmmod() uses the
flag to mean something which differs both from the name itself, and the
way it is used in insmod().

Replace the mit_ignore_loaded in rmmod() with a new flag mit_quiet_inuse
(it means not to complain if the module cannot be removed because it is
in use).

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
modprobe.c