Re: [PATCH] fs: drop pointless static qualifier in bdev_cache_init()

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

 



On Mon, Feb 18, 2019 at 10:14:17PM +0800, Mao Wenan wrote:
> There is no need to have the struct vfsmount *bd_mnt with static
> since new value always be assigned before use it.

No.  The point is to keep a copy of bd_mnt around.  Putting it on the
stack would lead to it being overwritten.



[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