Commit 97fedbbe authored by NeilBrown's avatar NeilBrown Committed by Jens Axboe

Remove GENHD_FL_DRIVERFS

This flag is not used, so best discarded.
Signed-off-by: default avatarNeilBrown <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: default avatarJens Axboe <jens.axboe@oracle.com>
parent c77a5710
...@@ -2185,7 +2185,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie) ...@@ -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); blk_queue_prep_rq(sdp->request_queue, sd_prep_fn);
gd->driverfs_dev = &sdp->sdev_gendev; gd->driverfs_dev = &sdp->sdev_gendev;
gd->flags = GENHD_FL_EXT_DEVT | GENHD_FL_DRIVERFS; gd->flags = GENHD_FL_EXT_DEVT;
if (sdp->removable) if (sdp->removable)
gd->flags |= GENHD_FL_REMOVABLE; gd->flags |= GENHD_FL_REMOVABLE;
......
...@@ -109,7 +109,7 @@ struct hd_struct { ...@@ -109,7 +109,7 @@ struct hd_struct {
}; };
#define GENHD_FL_REMOVABLE 1 #define GENHD_FL_REMOVABLE 1
#define GENHD_FL_DRIVERFS 2 /* 2 is unused */
#define GENHD_FL_MEDIA_CHANGE_NOTIFY 4 #define GENHD_FL_MEDIA_CHANGE_NOTIFY 4
#define GENHD_FL_CD 8 #define GENHD_FL_CD 8
#define GENHD_FL_UP 16 #define GENHD_FL_UP 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment