From: Erez Zadok <ezk@cs.sunysb.edu>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
viro@ftp.linux.org.uk, hch@infradead.org,
Erez Zadok <ezk@cs.sunysb.edu>
Subject: [PATCH 1/2] Unionfs: use new umount_begin prototype
Date: Fri, 9 May 2008 16:07:15 -0400 [thread overview]
Message-ID: <12103636373706-git-send-email-ezk@cs.sunysb.edu> (raw)
In-Reply-To: <12103636363945-git-send-email-ezk@cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/unionfs/super.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 82b4045..b110760 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -961,32 +961,21 @@ static int unionfs_write_inode(struct inode *inode, int sync)
* Used only in nfs, to kill any pending RPC tasks, so that subsequent
* code can actually succeed and won't leave tasks that need handling.
*/
-static void unionfs_umount_begin(struct vfsmount *mnt, int flags)
+static void unionfs_umount_begin(struct super_block *sb)
{
- struct super_block *sb, *lower_sb;
- struct vfsmount *lower_mnt;
+ struct super_block *lower_sb;
int bindex, bstart, bend;
- if (!(flags & MNT_FORCE))
- /*
- * we are not being MNT_FORCE'd, therefore we should emulate
- * old behavior
- */
- return;
-
- sb = mnt->mnt_sb;
-
unionfs_read_lock(sb, UNIONFS_SMUTEX_CHILD);
bstart = sbstart(sb);
bend = sbend(sb);
for (bindex = bstart; bindex <= bend; bindex++) {
- lower_mnt = unionfs_lower_mnt_idx(sb->s_root, bindex);
lower_sb = unionfs_lower_super_idx(sb, bindex);
- if (lower_mnt && lower_sb && lower_sb->s_op &&
+ if (lower_sb && lower_sb->s_op &&
lower_sb->s_op->umount_begin)
- lower_sb->s_op->umount_begin(lower_mnt, flags);
+ lower_sb->s_op->umount_begin(lower_sb);
}
unionfs_read_unlock(sb);
--
1.5.2.2
next prev parent reply other threads:[~2008-05-09 20:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 20:07 [GIT PULL -mm] 0/2 Unionfs updates/fixes/cleanups Erez Zadok
2008-05-09 20:07 ` Erez Zadok [this message]
2008-05-09 20:07 ` [PATCH 2/2] Unionfs: move fs/Makefile entry up to minimize merge conflicts Erez Zadok
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=12103636373706-git-send-email-ezk@cs.sunysb.edu \
--to=ezk@cs.sunysb.edu \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ftp.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 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).