On Fri, 15 Jun 2001 15:26:40 +0800 (CST),
Harrison Xing <harrison@xxxxxxxxxxxxxxxxxxxx> wrote:
> I use the XFS kernel tree of June 14. When I compile XFS and pagebuf
>as a module. After I just run "modprobe xfs", the usage count of XFS is 1 and I
>can't rmmod it. The following is the results of lsmod:
>Module Size Used by
>xfs 597542 1
>pagebuf 33636 0 [xfs]
>xfs_support 15272 0 [xfs]
> Anyone know what's the problem? Thanks.
init_xfs_fs() calls dmapi_init() which does MOD_INC_USE_COUNT. Compile
XFS without DMAPI support and your problem will disappear.
The module related code in dmapi is a hangover from a time when dmapi
was a module in its own right instead of being linked into xfs.o. I
will remove module related code from dmapi, I will also review grio, to
make sure it does not have the same problem.