linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Viro <viro@math.psu.edu>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fs/super.c stuff (5/10)
Date: Mon, 11 Jun 2001 01:35:25 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.21.0106110135010.24249-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <Pine.GSO.4.21.0106110134230.24249-100000@weyl.math.psu.edu>

diff -urN S6-pre2-put_super/fs/dquot.c S6-pre2-dquot/fs/dquot.c
--- S6-pre2-put_super/fs/dquot.c	Thu May 24 18:26:44 2001
+++ S6-pre2-dquot/fs/dquot.c	Sun Jun 10 18:46:54 2001
@@ -325,7 +325,7 @@
         memset(&dquot->dq_dqb, 0, sizeof(struct dqblk));
 }
 
-void invalidate_dquots(kdev_t dev, short type)
+static void invalidate_dquots(kdev_t dev, short type)
 {
 	struct dquot *dquot, *next;
 	int need_restart;
@@ -1388,7 +1388,7 @@
 }
 
 /* Function in inode.c - remove pointers to dquots in icache */
-extern void remove_dquot_ref(kdev_t, short);
+extern void remove_dquot_ref(struct super_block *, short);
 
 /*
  * Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
@@ -1413,7 +1413,7 @@
 		reset_enable_flags(dqopt, cnt);
 
 		/* Note: these are blocking operations */
-		remove_dquot_ref(sb->s_dev, cnt);
+		remove_dquot_ref(sb, cnt);
 		invalidate_dquots(sb->s_dev, cnt);
 
 		/* Wait for any pending IO - remove me as soon as invalidate is more polite */
diff -urN S6-pre2-put_super/fs/inode.c S6-pre2-dquot/fs/inode.c
--- S6-pre2-put_super/fs/inode.c	Fri Jun  8 18:29:03 2001
+++ S6-pre2-dquot/fs/inode.c	Sun Jun 10 18:43:02 2001
@@ -1164,14 +1164,13 @@
 void put_dquot_list(struct list_head *);
 int remove_inode_dquot_ref(struct inode *, short, struct list_head *);
 
-void remove_dquot_ref(kdev_t dev, short type)
+void remove_dquot_ref(struct super_block *sb, short type)
 {
-	struct super_block *sb = get_super(dev);
 	struct inode *inode;
 	struct list_head *act_head;
 	LIST_HEAD(tofree_head);
 
-	if (!sb || !sb->dq_op)
+	if (!sb->dq_op)
 		return;	/* nothing to do */
 
 	/* We have to be protected against other CPUs */
diff -urN S6-pre2-put_super/include/linux/quotaops.h S6-pre2-dquot/include/linux/quotaops.h
--- S6-pre2-put_super/include/linux/quotaops.h	Sun Jun 10 13:15:27 2001
+++ S6-pre2-dquot/include/linux/quotaops.h	Sun Jun 10 18:46:33 2001
@@ -21,7 +21,6 @@
  */
 extern void dquot_initialize(struct inode *inode, short type);
 extern void dquot_drop(struct inode *inode);
-extern void invalidate_dquots(kdev_t dev, short type);
 extern int  quota_off(struct super_block *sb, short type);
 extern int  sync_dquots(kdev_t dev, short type);
 



  reply	other threads:[~2001-06-11  5:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-11  5:32 [PATCHes] fs/super.c stuff Alexander Viro
2001-06-11  5:33 ` [PATCH] fs/super.c stuff (1/10) Alexander Viro
2001-06-11  5:33   ` [PATCH] fs/super.c stuff (2/10) Alexander Viro
2001-06-11  5:34     ` [PATCH] fs/super.c stuff (3/10) Alexander Viro
2001-06-11  5:34     ` Alexander Viro
2001-06-11  5:35       ` Alexander Viro [this message]
2001-06-11  5:37         ` [PATCH] fs/super.c stuff (6/10) Alexander Viro
2001-06-11  5:37           ` [PATCH] fs/super.c stuff (7/10) Alexander Viro
2001-06-11  5:38             ` [PATCH] fs/super.c stuff (8/10) Alexander Viro
2001-06-11  5:39               ` [PATCH] fs/super.c stuff (9/10) Alexander Viro
2001-06-11  5:40                 ` [PATCH] fs/super.c stuff (10/10) Alexander Viro
2001-06-11  5:36       ` [PATCH] fs/super.c stuff (3/10) Alexander Viro

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=Pine.GSO.4.21.0106110135010.24249-100000@weyl.math.psu.edu \
    --to=viro@math.psu.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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).