lkml.org 
[lkml]   [2023]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] f2fs: introduce F2FS_SBI_RW_ATTR macro
Date
> F2FS_RW_ATTR looks more common to me.

My idea is to add macro like this:

F2FS_SBI_GENERAL_RW_ATTR(node_io_flag);
CPRC_INFO_GENERAL_RW_ATTR(ckpt_thread_ioprio);
......
F2FS_SBI_RW_ATTR(umount_discard_timeout, interval_time[UMOUNT_DISCARD_TIMEOUT]);

It seems unnecessary to repeat a bunch of the same things just to add a parameter.
Are there any problems using the new macros?

Thx,
Yangtao

\
 
 \ /
  Last update: 2023-04-13 19:07    [W:0.044 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site