From patchwork Wed Dec 13 03:18:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Viro X-Patchwork-Id: 13490291 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="pZDhelTM" Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1FBD5 for ; Tue, 12 Dec 2023 19:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=3fE/oxeg1thLynUN0Za05MCtDcmKpfNaEwI0X2tkErY=; b=pZDhelTML+Jjel+hfkABfcAK6W e5UcLU9jZ13F8uai8/5DcQXiNGbakHfUi4hfNYVW8JRG1fO77CsGC+KGvkhopHG1KMqrhJLLeWrUH lIM+YCIg+ZzY3O2h2YhnAV1iND2I/XAnRqTYvqe10bNzLV4E+G6GcDXUBIb3BA2J3wPnAyTtGiPkV y4Q+fhdCUg06I6gLEq3yWKCVgP3HPgbdEFVUT5xQyUpcibZ8VURgyruV9vm1dLzJVOvHUFhp1eWWn bl/SdGsaZavkUrxfwaNSarfQ2AC6Iz5FwhaZuwUGjP7BCsDViumsLszlNvAYsr3mgVkS6Vzh/tZjz Twm9k1RA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rDFlV-00BbyH-1I; Wed, 13 Dec 2023 03:18:29 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: Evgeniy Dushistov , "Fabio M. De Francesco" Subject: [PATCH 10/12] ufs_inode_getfrag(): remove junk comment Date: Wed, 13 Dec 2023 03:18:25 +0000 Message-Id: <20231213031827.2767531-10-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231213031827.2767531-1-viro@zeniv.linux.org.uk> References: <20231213031639.GJ1674809@ZenIV> <20231213031827.2767531-1-viro@zeniv.linux.org.uk> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Sender: Al Viro It used to be a stubbed out beginning of ufs2 support, which had been implemented differently quite a while ago. Remove the commented-out (pseudo-)code. Signed-off-by: Al Viro --- fs/ufs/inode.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index ebce93b08281..e1c736409af8 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -263,11 +263,6 @@ ufs_inode_getfrag(struct inode *inode, unsigned index, unsigned nfrags = uspi->s_fpb; void *p; - /* TODO : to be done for write support - if ( (flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) - goto ufs2; - */ - p = ufs_get_direct_data_ptr(uspi, ufsi, index); tmp = ufs_data_ptr_to_cpu(sb, p); if (tmp) @@ -302,21 +297,6 @@ ufs_inode_getfrag(struct inode *inode, unsigned index, mark_inode_dirty(inode); out: return tmp + uspi->s_sbbase; - - /* This part : To be implemented .... - Required only for writing, not required for READ-ONLY. -ufs2: - - u2_block = ufs_fragstoblks(fragment); - u2_blockoff = ufs_fragnum(fragment); - p = ufsi->i_u1.u2_i_data + block; - goal = 0; - -repeat2: - tmp = fs32_to_cpu(sb, *p); - lastfrag = ufsi->i_lastfrag; - - */ } /**