Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4552514ybv; Tue, 25 Feb 2020 22:39:40 -0800 (PST) X-Google-Smtp-Source: APXvYqygZJNVExqwovfsYTIiCRJccBFHQAfP95rRaKR+Ysmk4uGiE0MIGnhr80N2O2vIhur/MqES X-Received: by 2002:a05:6808:2cd:: with SMTP id a13mr1978995oid.82.1582699180419; Tue, 25 Feb 2020 22:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582699180; cv=none; d=google.com; s=arc-20160816; b=d3LWMfKVyKYUD6AQfRM3wE6+QIJS3NYTm1aS64Y5/Cz4gud4lUn541n6vSJFoTf4iX M/HISJQKtbGVIlxiehEwY3hBpX4a8fp0eCz4XmV1Dw4D0Bv3LO51kH0zJUf3X0T5LkzO C4fcig47GfRjm/EmeusBT3l+B/k3TlLqe5jw7HTL+k6dDPssLls0VoR3sF3BNZoXWbqg SzqSWvyT1U5TEEYwvcTlhqL2AD2F46NBi0qhxRpggOkFa57662HO0K7jWHyr/LDwFug7 a7lEk/jd56wny+1EdxyYID/D9hyT1TRRxm6iI3OifkHeuOobCjesCrzzqquZF9ZNtexr zOtA== 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; bh=UYBKtFuyeE/mq4rGO4TUAvL4Nm7P6m6JSC8k+dES9qc=; b=W+POOOgL9oCf5FzIgTyCYyColKo7sy1brqw9XRjoeFW07Kw+aIF2VuQQU4RW4wsxca xjcnYBK8Fu2mASsJkH2fwc2/b+Kq+MX3w41mf/bP75/s1QEFK2kIiZOBpDe2JUUYeINn et89pQ5gR7SpXNFenhWCNzfiGXjWOwApG5ug0lkWTScE3JwlA7NHOX0RnLXkJPRXnhV6 ynSWSEXlWONbjozuoZZDovARqAt0t6RpBcdlXuxt1BdwLhAnXEe6dALL3ILSUP+e3bl3 ixNwa+986/hZ5SHyijZ5EoVbUXfZ/3yqJc427ea9UGbGE2nCeQhUrWLQNcO7EJ+wSzzg 4CDA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si726769otj.282.2020.02.25.22.39.27; Tue, 25 Feb 2020 22:39:40 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbgBZGhv (ORCPT + 99 others); Wed, 26 Feb 2020 01:37:51 -0500 Received: from mx04.melco.co.jp ([192.218.140.144]:56364 "EHLO mx04.melco.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgBZGhv (ORCPT ); Wed, 26 Feb 2020 01:37:51 -0500 Received: from mr04.melco.co.jp (mr04 [133.141.98.166]) by mx04.melco.co.jp (Postfix) with ESMTP id 4DA743A419B; Wed, 26 Feb 2020 15:37:49 +0900 (JST) Received: from mr04.melco.co.jp (unknown [127.0.0.1]) by mr04.imss (Postfix) with ESMTP id 48S5hY139lzRkGJ; Wed, 26 Feb 2020 15:37:49 +0900 (JST) Received: from mf04_second.melco.co.jp (unknown [192.168.20.184]) by mr04.melco.co.jp (Postfix) with ESMTP id 48S5hY0kljzRk96; Wed, 26 Feb 2020 15:37:49 +0900 (JST) Received: from mf04.melco.co.jp (unknown [133.141.98.184]) by mf04_second.melco.co.jp (Postfix) with ESMTP id 48S5hY0hqBzRkC0; Wed, 26 Feb 2020 15:37:49 +0900 (JST) Received: from tux532.tad.melco.co.jp (unknown [133.141.243.226]) by mf04.melco.co.jp (Postfix) with ESMTP id 48S5hY07KZzRk7V; Wed, 26 Feb 2020 15:37:49 +0900 (JST) Received: from tux532.tad.melco.co.jp by tux532.tad.melco.co.jp (unknown) with ESMTP id 01Q6bmYY020894; Wed, 26 Feb 2020 15:37:48 +0900 Received: from tux390.tad.melco.co.jp (tux390.tad.melco.co.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id A1CB817E075; Wed, 26 Feb 2020 15:37:48 +0900 (JST) Received: from tux554.tad.melco.co.jp (mailgw1.tad.melco.co.jp [10.168.7.223]) by tux390.tad.melco.co.jp (Postfix) with ESMTP id 8905917E073; Wed, 26 Feb 2020 15:37:48 +0900 (JST) Received: from tux554.tad.melco.co.jp by tux554.tad.melco.co.jp (unknown) with ESMTP id 01Q6bmFI029214; Wed, 26 Feb 2020 15:37:48 +0900 From: Tetsuhiro Kohada To: Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp Cc: Mori.Takahiro@ab.MitsubishiElectric.co.jp, motai.hirotaka@aj.mitsubishielectric.co.jp, Valdis Kletnieks , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: exfat: remove symlink feature : Additional patch Date: Wed, 26 Feb 2020 15:37:46 +0900 Message-Id: <20200226063746.3128-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> X-Mailer: git-send-email 2.25.1 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 Completely remove symlink codes and definitions. In the previous patch, it was not completely removed. Signed-off-by: Tetsuhiro Kohada --- drivers/staging/exfat/exfat.h | 3 --- drivers/staging/exfat/exfat_core.c | 3 --- drivers/staging/exfat/exfat_super.c | 27 --------------------------- 3 files changed, 33 deletions(-) diff --git a/drivers/staging/exfat/exfat.h b/drivers/staging/exfat/exfat.h index 4a0a481fe010..cd3479fc78ba 100644 --- a/drivers/staging/exfat/exfat.h +++ b/drivers/staging/exfat/exfat.h @@ -63,7 +63,6 @@ #define TYPE_VOLUME 0x0103 #define TYPE_DIR 0x0104 #define TYPE_FILE 0x011F -#define TYPE_SYMLINK 0x015F #define TYPE_CRITICAL_SEC 0x0200 #define TYPE_STREAM 0x0201 #define TYPE_EXTEND 0x0202 @@ -198,13 +197,11 @@ static inline u16 get_row_index(u16 i) #define ATTR_VOLUME 0x0008 #define ATTR_SUBDIR 0x0010 #define ATTR_ARCHIVE 0x0020 -#define ATTR_SYMLINK 0x0040 #define ATTR_EXTEND 0x000F #define ATTR_RWMASK 0x007E /* file creation modes */ #define FM_REGULAR 0x00 -#define FM_SYMLINK 0x40 #define NUM_UPCASE 2918 diff --git a/drivers/staging/exfat/exfat_core.c b/drivers/staging/exfat/exfat_core.c index d30dc050411e..941094b08dd9 100644 --- a/drivers/staging/exfat/exfat_core.c +++ b/drivers/staging/exfat/exfat_core.c @@ -844,9 +844,6 @@ static void exfat_set_entry_type(struct dentry_t *p_entry, u32 type) } else if (type == TYPE_FILE) { ep->type = 0x85; SET16_A(ep->attr, ATTR_ARCHIVE); - } else if (type == TYPE_SYMLINK) { - ep->type = 0x85; - SET16_A(ep->attr, ATTR_ARCHIVE | ATTR_SYMLINK); } } diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index c7bc07e91c45..6f3b72eb999d 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -320,8 +320,6 @@ static inline mode_t exfat_make_mode(struct exfat_sb_info *sbi, u32 attr, if (attr & ATTR_SUBDIR) return (mode & ~sbi->options.fs_dmask) | S_IFDIR; - else if (attr & ATTR_SYMLINK) - return (mode & ~sbi->options.fs_dmask) | S_IFLNK; else return (mode & ~sbi->options.fs_fmask) | S_IFREG; } @@ -2399,24 +2397,6 @@ static const struct inode_operations exfat_dir_inode_operations = { /*======================================================================*/ /* File Operations */ /*======================================================================*/ -static const char *exfat_get_link(struct dentry *dentry, struct inode *inode, - struct delayed_call *done) -{ - struct exfat_inode_info *ei = EXFAT_I(inode); - - if (ei->target) { - char *cookie = ei->target; - - if (cookie) - return (char *)(ei->target); - } - return NULL; -} - -static const struct inode_operations exfat_symlink_inode_operations = { - .get_link = exfat_get_link, -}; - static int exfat_file_release(struct inode *inode, struct file *filp) { struct super_block *sb = inode->i_sb; @@ -2688,13 +2668,6 @@ static int exfat_fill_inode(struct inode *inode, struct file_id_t *fid) i_size_write(inode, info.Size); EXFAT_I(inode)->mmu_private = i_size_read(inode); set_nlink(inode, info.num_subdirs); - } else if (info.attr & ATTR_SYMLINK) { /* symbolic link */ - inode->i_generation |= 1; - inode->i_mode = exfat_make_mode(sbi, info.attr, 0777); - inode->i_op = &exfat_symlink_inode_operations; - - i_size_write(inode, info.Size); - EXFAT_I(inode)->mmu_private = i_size_read(inode); } else { /* regular file */ inode->i_generation |= 1; inode->i_mode = exfat_make_mode(sbi, info.attr, 0777); -- 2.25.1