From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbbJMBJQ (ORCPT ); Mon, 12 Oct 2015 21:09:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43530 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752735AbbJMBJP (ORCPT ); Mon, 12 Oct 2015 21:09:15 -0400 From: Stephen Boyd To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 0/4] Consolidate debugfs mode checks in creation APIs Date: Mon, 12 Oct 2015 18:09:08 -0700 Message-Id: <1444698552-12369-1-git-send-email-sboyd@codeaurora.org> X-Mailer: git-send-email 2.6.1.134.g26caae2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewing Viresh's patch it looks like there was some ample opportunity to consolidate code here, and also close some holes where variables are modifiable. Split into multiple patches in case something causes regressions. Stephen Boyd (4): debugfs: Consolidate file mode checks in debugfs_create_*() debugfs: Add read-only/write-only x64 file ops debugfs: Add read-only/write-only size_t file ops debugfs: Add read-only/write-only bool file ops fs/debugfs/file.c | 123 ++++++++++++++++++++++++------------------------------ 1 file changed, 54 insertions(+), 69 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project