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]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux