Re: [PATCH] Btrfs: add __init macro to btrfs init function

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

 



On Thu, Nov 02, 2017 at 05:21:50PM -0600, Liu Bo wrote:
> Adding __init macro gives kernel a hint that this function is only
> used during the initialization phase and its memory resources can be
> freed up after.

> Signed-off-by: Liu Bo <bo.li.liu@xxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>

Would be good to add the __exit annotations as well (separate patch
please).

I haven't found any instances suitable for __initdata and the like.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux