linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: remove block_device_ejected
@ 2015-02-14 13:27 Christoph Hellwig
  2015-04-03  3:57 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2015-02-14 13:27 UTC (permalink / raw)
  To: linux-ext4

bdi->dev now never goes away, so this function became useless.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/ext4/super.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index ad88e60..826cb66 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -323,22 +323,6 @@ static void save_error_info(struct super_block *sb, const char *func,
 	ext4_commit_super(sb, 1);
 }
 
-/*
- * The del_gendisk() function uninitializes the disk-specific data
- * structures, including the bdi structure, without telling anyone
- * else.  Once this happens, any attempt to call mark_buffer_dirty()
- * (for example, by ext4_commit_super), will cause a kernel OOPS.
- * This is a kludge to prevent these oops until we can put in a proper
- * hook in del_gendisk() to inform the VFS and file system layers.
- */
-static int block_device_ejected(struct super_block *sb)
-{
-	struct inode *bd_inode = sb->s_bdev->bd_inode;
-	struct backing_dev_info *bdi = inode_to_bdi(bd_inode);
-
-	return bdi->dev == NULL;
-}

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext4: remove block_device_ejected
  2015-02-14 13:27 [PATCH] ext4: remove block_device_ejected Christoph Hellwig
@ 2015-04-03  3:57 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2015-04-03  3:57 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-ext4

On Sat, Feb 14, 2015 at 06:27:42AM -0700, Christoph Hellwig wrote:
> bdi->dev now never goes away, so this function became useless.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Thanks, applied.  Sorry for the delay.

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-03  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-14 13:27 [PATCH] ext4: remove block_device_ejected Christoph Hellwig
2015-04-03  3:57 ` Theodore Ts'o

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).