All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: viro@zeniv.linux.org.uk, miklos@szeredi.hu
Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org,
	linux-unionfs@vger.kernel.org
Subject: [PATCH 0/4] Overlayfs: Wrap ->d_inode
Date: Thu, 16 Apr 2015 15:42:41 +0100	[thread overview]
Message-ID: <20150416144241.12620.85836.stgit@warthog.procyon.org.uk> (raw)


Hi Al, Miklos,

Here are four patches that wrap ->d_inode inside of overlayfs.

The first patch wraps a number of S_ISDIR(dentry->d_inode) to d_is_dir(dentry)
or d_can_lookup(dentry), making the assumption that a directory in a lower
layer will always correspond to a directory in the union layer - and thus the
test works for both the overlay's own inodes and the overlay's subordinate
inodes.

The second patch wraps accesses to an overlay superblock's own inodes.  These
require the use of d_inode() and d_really_is_xxx().

The third and fourth patch wraps accesses that an overlay superblock does to
its subordinate inodes.  These require the use of d_backing_inode() and
d_is_xxx().

It is assumed that an overlay will _not_ be used as the top layer in a
unionmount.

The patches can also be found here:

	http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=file-pin-devel-2

under the overlay-pin-20150416 tag.

David
---
David Howells (4):
      Overlayfs: Convert S_ISDIR(dentry->d_inode) to d_is_dir()/d_can_lookup()
      Overlayfs: Convert own ->d_inode to d_inode() or d_really_is_positive/negative()
      Overlayfs: Wrap accesses to ->d_inode on subordinate filesystems
      Overlayfs: Wrap RCU-mode accesses to ->d_inode on subordinate filesystems


 fs/overlayfs/copy_up.c |   18 ++++++-------
 fs/overlayfs/dir.c     |   67 ++++++++++++++++++++++++------------------------
 fs/overlayfs/inode.c   |   16 ++++++-----
 fs/overlayfs/readdir.c |    6 ++--
 fs/overlayfs/super.c   |   39 ++++++++++++++--------------
 include/linux/dcache.h |   18 +++++++++++++
 6 files changed, 92 insertions(+), 72 deletions(-)


             reply	other threads:[~2015-04-16 14:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 14:42 David Howells [this message]
2015-04-16 14:42 ` [PATCH 1/4] Overlayfs: Convert S_ISDIR(dentry->d_inode) to d_is_dir()/d_can_lookup() David Howells
2015-04-16 14:43 ` [PATCH 2/4] Overlayfs: Convert own ->d_inode to d_inode() or d_really_is_positive/negative() David Howells
2015-04-16 14:43 ` [PATCH 3/4] Overlayfs: Wrap accesses to ->d_inode on subordinate filesystems David Howells
2015-04-17  8:53   ` Miklos Szeredi
2015-04-16 14:43 ` [PATCH 4/4] Overlayfs: Wrap RCU-mode " David Howells

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=20150416144241.12620.85836.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=viro@zeniv.linux.org.uk \
    /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.