stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: fdmanana@kernel.org
To: linux-btrfs@vger.kernel.org
Cc: stable@vger.kernel.org, Filipe Manana <fdmanana@suse.com>
Subject: [PATCH v2 0/4 for stable 6.1] btrfs: some directory fixes for stable 6.1
Date: Sat, 27 Jan 2024 18:15:38 +0000	[thread overview]
Message-ID: <cover.1706379057.git.fdmanana@suse.com> (raw)
In-Reply-To: <cover.1706377319.git.fdmanana@suse.com>

From: Filipe Manana <fdmanana@suse.com>

Here follows the backport of some directory related fixes for the stable
6.1 tree. I tested these on top of 6.1.75.

These were recently requested by a user for 5.15 stable:

   https://lore.kernel.org/linux-btrfs/20240124225522.GA2614102@lxhi-087/

This request is to backport the same patches to 6.1, while the request
for 5.15 stabe is at:

   https://lore.kernel.org/linux-btrfs/cover.1706183427.git.fdmanana@suse.com/

V2: Added missing stashes changes to fix compilation for patch 1/4.

Filipe Manana (4):
  btrfs: fix infinite directory reads
  btrfs: set last dir index to the current last index when opening dir
  btrfs: refresh dir last index during a rewinddir(3) call
  btrfs: fix race between reading a directory and adding entries to it

 fs/btrfs/ctree.h         |   1 +
 fs/btrfs/delayed-inode.c |   5 +-
 fs/btrfs/delayed-inode.h |   1 +
 fs/btrfs/inode.c         | 150 +++++++++++++++++++++++++--------------
 4 files changed, 102 insertions(+), 55 deletions(-)

-- 
2.40.1


  parent reply	other threads:[~2024-01-27 18:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-27 17:56 [PATCH 0/4 for 6.1 stable] fdmanana
2024-01-27 17:56 ` [PATCH 1/4 for 6.1 stable] btrfs: fix infinite directory reads fdmanana
2024-01-27 17:56 ` [PATCH 2/4 for 6.1 stable] btrfs: set last dir index to the current last index when opening dir fdmanana
2024-01-27 17:56 ` [PATCH 3/4 for 6.1 stable] btrfs: refresh dir last index during a rewinddir(3) call fdmanana
2024-01-27 17:56 ` [PATCH 4/4 for 6.1 stable] btrfs: fix race between reading a directory and adding entries to it fdmanana
2024-01-27 18:15 ` fdmanana [this message]
2024-01-27 18:15   ` [PATCH v2 1/4 for stable 6.1] btrfs: fix infinite directory reads fdmanana
2024-01-27 18:15   ` [PATCH v2 2/4 for stable 6.1] btrfs: set last dir index to the current last index when opening dir fdmanana
2024-01-27 18:15   ` [PATCH v2 3/4 for stable 6.1] btrfs: refresh dir last index during a rewinddir(3) call fdmanana
2024-01-27 18:15   ` [PATCH v2 4/4 for stable 6.1] btrfs: fix race between reading a directory and adding entries to it fdmanana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1706379057.git.fdmanana@suse.com \
    --to=fdmanana@kernel.org \
    --cc=fdmanana@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).