All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert White <rwhite@pobox.com>
To: Filipe Manana <fdmanana@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2] Btrfs: make xattr replace operations atomic
Date: Fri, 07 Nov 2014 17:26:35 -0800	[thread overview]
Message-ID: <545D714B.2000207@pobox.com> (raw)
In-Reply-To: <1415408514-17845-1-git-send-email-fdmanana@suse.com>

On 11/07/2014 05:01 PM, Filipe Manana wrote:
> V2: Added missing btrfs_mark_buffer_dirty() call for the case where a replace
>      happens for an item with no other xattrs and the new xattr value size is
>      the same as the old xattr value size;
>      Made btrfs_search_slot not release the path if it returns EOVERFLOW (from
>      split_leaf), so that we can get the current size of the item when doing
>      the replace and extend the leaf to a size smaller then what we passed to
>      btrfs_search_slot if the xattr exists in the item (and the new extend size
>      is new_size - old_size, excluding xattr's name and sizeof struct btrfs_dir_item).

Stupid Question Here: How does this "replace and extend" affect the 
whole copy-on-write paradigm. Aren't you now overwriting the contents of 
the old data instead of doing a COW?

Not a passive-aggressive commentary question, I genuinely don't 
understand this piece of code so I am seeking a learning opportunity.

  reply	other threads:[~2014-11-08  1:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 20:39 [PATCH] Btrfs: make xattr replace operations atomic Filipe Manana
2014-11-07 20:54 ` Chris Mason
2014-11-07 21:34   ` Filipe David Manana
2014-11-08  1:01 ` [PATCH v2] " Filipe Manana
2014-11-08  1:26   ` Robert White [this message]
2014-11-08  7:17     ` Filipe David Manana
2014-11-08 13:01 ` [PATCH v3] " Filipe Manana
2014-11-09  8:38 ` [PATCH v4] " Filipe Manana

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=545D714B.2000207@pobox.com \
    --to=rwhite@pobox.com \
    --cc=fdmanana@suse.com \
    --cc=linux-btrfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.