Re: [PATCH 4/5] shmem: use call_once()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/3/11, Hugh Dickins <hugh@xxxxxxxxxxx>:
> On Tue, 11 Mar 2008, Akinobu Mita wrote:
>  > This patch defers mounting tmpfs till shmem_file_setup() is
>  > called first time by using call_once().
>
>
> Please explain why we might need this patch: is something changing
>  elsewhere?  Or are you misled by that "module_init(init_tmpfs)"
>  into thinking that mm/shmem.c is sometimes built modular?
>

If no processes call shmem_file_setup() (via shm_get(2)), it is unnecessary
to do vfs_kern_mount(&tmpfs_fs_type, ...) unconditionary in boot-time.
So I thought it is suitable example to demonstrate how to use "call_once()"
in this patch set.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux