Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2989700ybi; Thu, 4 Jul 2019 23:47:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg2DYiSv5lCpophHgWuy93xWZc3qTBoLB/eQpJeYxTNCxhyYUUlK5azoB5fZY8h5woKXtS X-Received: by 2002:a17:90a:bc0c:: with SMTP id w12mr2833538pjr.111.1562309236184; Thu, 04 Jul 2019 23:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562309236; cv=none; d=google.com; s=arc-20160816; b=W6XoV2JaIrxOouEe3E435bFaEXuWw1drXU8o+CjdFZcki9JzbmIjzpsryF8I09QUrU JrzswjDgIhC3XnR2gWi93zywW1uD+8CoP1OoLUomjV1S0Bu1XyAwj+0zu2U9a3wzdL27 sDSTm/RTV10BmR0TbOdMX9HlqS8Biiz1hDWOZHm2Xbtf6hJVWaGtf0PRjKLbcBV6Lkb/ eXqCPgqRr8jgu2996PtaJP2tmkEajY0R4HXdB3G6etGEMRm/mC0p/zqQsD1vtwSgyBLJ JxdXMCaSltOHdLnyH9mUcmTorIRHJYhISRZRm7c1JJ8MUXB1SK5+tuO5Yny3hSJrU73P z/PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HPc4AcoQ3P+zS6lMGUon2EQ7SnBq965OMJX0kHqMjV0=; b=M6EebnhMwY4S7sYzzI53ORDq0JZNNZdrNcfesv+/KC8fI7pfG9Y4s1OCbLEun6ARmL UK3kLuDwJfzcRUAceWOLHBjaJkWdpRNARVZEactJzH5EpS+WQR2lsD0Y0uXbEUDzJxOp LHk52rlnAy9P5Gu8teHvQFpT/OhkhXp0POJgjPAxPOAiXJuAkSbhdOBUhUv/6qaVIyau ImwspNWsLE5a9KaA42AmjPOSiQ1kSIcCCiTh/1VJylLBknSj4qcaPKtsbeSafSVqtUL6 m2pJIQDMcY/u0dF/gzLwW+338t1OSsuaMRCSkiLiqkPr8KJmXwX2i+iOz0E0BS9FSdsC bRkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TCMhTSfT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si8312199pff.250.2019.07.04.23.47.00; Thu, 04 Jul 2019 23:47:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TCMhTSfT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727767AbfGEG3N (ORCPT + 99 others); Fri, 5 Jul 2019 02:29:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:39598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726892AbfGEG3N (ORCPT ); Fri, 5 Jul 2019 02:29:13 -0400 Received: from localhost (c-98-234-77-170.hsd1.ca.comcast.net [98.234.77.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5809A21852; Fri, 5 Jul 2019 06:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562308152; bh=rtqDsA1dt41jmY4HH8dyLkub/U82sQVRFe+2M0a+nCg=; h=From:To:Cc:Subject:Date:From; b=TCMhTSfTG6e8HjcjQ/khzcsPcnDqritHcZ6OLjp9322MVS1Z7TRWENemxx7rQcdBf zuUSYXaA35XA/Y6p7t5ICwKKLNWBzM1njkLJ3b+rJiKLpqwQdQ1JE7BM1KSjicYuUK Bf6cGP5MRnee4uZaaImcS3ge3cKgNAci8zDG9Utg= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH] f2fs: allow all the users to pin a file Date: Thu, 4 Jul 2019 23:29:10 -0700 Message-Id: <20190705062910.39163-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch allows users to pin files. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b164f48e0f31..f8d46df8fa9e 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2964,9 +2964,6 @@ static int f2fs_ioc_set_pin_file(struct file *filp, unsigned long arg) __u32 pin; int ret = 0; - if (!capable(CAP_SYS_ADMIN)) - return -EPERM; - if (get_user(pin, (__u32 __user *)arg)) return -EFAULT; -- 2.19.0.605.g01d371f741-goog