Remove GENHD_FL_DRIVERFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 9, 2010 - 11:59 am

Gitweb:     http://git.kernel.org/linus/97fedbbe1046b3118f49df249840ca21041eefe4
Commit:     97fedbbe1046b3118f49df249840ca21041eefe4
Parent:     c77a5710b7e23847bfdb81fcaa10b585f65c960a
Author:     NeilBrown <neilb@suse.de>
AuthorDate: Tue Mar 16 08:55:32 2010 +0100
Committer:  Jens Axboe <jens.axboe@oracle.com>
CommitDate: Tue Mar 16 08:55:32 2010 +0100

    Remove GENHD_FL_DRIVERFS
    
    This flag is not used, so best discarded.
    
    Signed-off-by: NeilBrown <neilb@suse.de>
    --
    Hi Jens,
     I came across this recently - these are the only two occurances
     of "GENHD_FL_DRIVERFS" in the kernel, so it cannot be needed.
    NeilBrown
    Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
---
 drivers/scsi/sd.c     |    2 +-
 include/linux/genhd.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 1dd4d84..466fae8 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2185,7 +2185,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
 	blk_queue_prep_rq(sdp->request_queue, sd_prep_fn);
 
 	gd->driverfs_dev = &sdp->sdev_gendev;
-	gd->flags = GENHD_FL_EXT_DEVT | GENHD_FL_DRIVERFS;
+	gd->flags = GENHD_FL_EXT_DEVT;
 	if (sdp->removable)
 		gd->flags |= GENHD_FL_REMOVABLE;
 
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 56b5051..5f2f4c4 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -109,7 +109,7 @@ struct hd_struct {
 };
 
 #define GENHD_FL_REMOVABLE			1
-#define GENHD_FL_DRIVERFS			2
+/* 2 is unused */
 #define GENHD_FL_MEDIA_CHANGE_NOTIFY		4
 #define GENHD_FL_CD				8
 #define GENHD_FL_UP				16
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Remove GENHD_FL_DRIVERFS, Linux Kernel Mailing ..., (Fri Apr 9, 11:59 am)