From patchwork Sat Sep 9 12:08:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13378084 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29ED0EEB58B for ; Sat, 9 Sep 2023 12:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345513AbjIIMIt (ORCPT ); Sat, 9 Sep 2023 08:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbjIIMIs (ORCPT ); Sat, 9 Sep 2023 08:08:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01CCCCA for ; Sat, 9 Sep 2023 05:08:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9229FC433C8; Sat, 9 Sep 2023 12:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694261323; bh=z2bApQ1dR9UUZgfwFOrkJZFnYua9wMnKEqy1QTeVQK0=; h=From:To:Cc:Subject:Date:From; b=kmPQ1MY/T6LUuZvFPGb+7EgZRNCcgRiWpJR8EgGORG3T9WFRUZ+YqvhsJ49vt2k+A LM4q14cOG1ay5vnYPKlPRd3NEZDEaCKK92Slr1oeKH1wIpJuf+kIUTbyZZCvDmCFTp uNBthGMjXtQTEsmeLCUtPAgL45TlYTa7URmVzlYQ3ovU2W3qBi25poKSNihYDkGC1u MY1ag8XS2wkPBvhAS2YaRONz/yw1z6WUeQaYM5DraquM3HZJ38trFEBAr2U4UKhy1k qcm2bu/wShmrE1DXty8qeIhla8VtM2R7LdcrWJ7rp96BFxLbNkUffJ+cTS1+U276DR TbPjmj8euIDkg== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Cc: ian@ianjohnson.dev, Filipe Manana Subject: [PATCH 0/2] btrfs: updates for directory reading Date: Sat, 9 Sep 2023 13:08:30 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Filipe Manana Tweak and fix a bug when reading directory entries after a rewinddir(3) call. Reported by Ian Johnson. Link: https://lore.kernel.org/linux-btrfs/YR1P0S.NGASEG570GJ8@ianjohnson.dev/T/#u Filipe Manana (2): btrfs: set last dir index to the current last index when opening dir btrfs: refresh dir last index during a rewinddir(3) call fs/btrfs/inode.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) Reviewed-by: Josef Bacik