Re: [PATCH 1/4] debugfs: Consolidate file mode checks in debugfs_create_*()

From: Viresh Kumar
Date: Mon Oct 12 2015 - 23:44:13 EST


On 12-10-15, 18:09, Stephen Boyd wrote:
> The code that creates debugfs file with different file ops based
> on the file mode is duplicated in each debugfs_create_*() API.
> Consolidate that code into debugfs_create_mode(), that takes
> three file ops structures so that we don't have to keep
> copy/pasting that logic.
>
> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
> ---
> fs/debugfs/file.c | 98 ++++++++++++++++++-------------------------------------
> 1 file changed, 32 insertions(+), 66 deletions(-)

Reviewed-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/