[PATCH 3/3] fs: drop unused FS_DRIVER_NO_DEV flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The flag used to have an effect, but does so no longer, so let's just
drop it.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 fs/bpkfs.c            | 1 -
 fs/devfs.c            | 1 -
 fs/ext4/ext_barebox.c | 1 -
 fs/fat/fat.c          | 1 -
 fs/jffs2/fs.c         | 1 -
 fs/nfs.c              | 1 -
 fs/omap4_usbbootfs.c  | 1 -
 fs/pstore/fs.c        | 1 -
 fs/ramfs.c            | 1 -
 fs/ratpfs.c           | 1 -
 fs/smhfs.c            | 1 -
 fs/tftp.c             | 1 -
 fs/ubifs/ubifs.c      | 1 -
 fs/uimagefs.c         | 1 -
 include/fs.h          | 4 ----
 15 files changed, 18 deletions(-)

diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index 26ce73ce6bcf..fe6154c555a4 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -504,7 +504,6 @@ static struct fs_driver bpkfs_driver = {
 	.read      = bpkfs_read,
 	.lseek     = bpkfs_lseek,
 	.legacy_ops = &bpkfs_ops,
-	.flags     = 0,
 	.type = filetype_bpk,
 	.drv = {
 		.probe  = bpkfs_probe,
diff --git a/fs/devfs.c b/fs/devfs.c
index 1bc64676b24d..38a85bac3c49 100644
--- a/fs/devfs.c
+++ b/fs/devfs.c
@@ -312,7 +312,6 @@ static struct fs_driver devfs_driver = {
 	.protect   = devfs_protect,
 	.discard_range = devfs_discard_range,
 	.memmap    = devfs_memmap,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = devfs_probe,
 		.remove = devfs_delete,
diff --git a/fs/ext4/ext_barebox.c b/fs/ext4/ext_barebox.c
index 163c4d2fe1b7..b1888bc4a954 100644
--- a/fs/ext4/ext_barebox.c
+++ b/fs/ext4/ext_barebox.c
@@ -301,7 +301,6 @@ static void ext_remove(struct device *dev)
 static struct fs_driver ext_driver = {
 	.read      = ext_read,
 	.type      = filetype_ext,
-	.flags     = 0,
 	.drv = {
 		.probe  = ext_probe,
 		.remove = ext_remove,
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index d5eade165f1a..15a7b2a96927 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -397,7 +397,6 @@ static struct fs_driver fat_driver = {
 #endif
 	.legacy_ops = &fat_ops,
 	.type = filetype_fat,
-	.flags     = 0,
 	.drv = {
 		.probe  = fat_probe,
 		.remove = fat_remove,
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index 3514b0fb3b5a..5952ea9e904f 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -461,7 +461,6 @@ static void jffs2_remove(struct device *dev)
 static struct fs_driver jffs2_driver = {
 	.read = jffs2_read,
 	.type = filetype_jffs2,
-	.flags     = 0,
 	.drv = {
 		.probe  = jffs2_probe,
 		.remove = jffs2_remove,
diff --git a/fs/nfs.c b/fs/nfs.c
index 51bf15196c4e..530d9c6672d8 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1555,7 +1555,6 @@ static struct fs_driver nfs_driver = {
 	.lseek     = nfs_lseek,
 	.write     = nfs_write,
 	.truncate  = nfs_truncate,
-	.flags     = 0,
 	.drv = {
 		.probe  = nfs_probe,
 		.remove = nfs_remove,
diff --git a/fs/omap4_usbbootfs.c b/fs/omap4_usbbootfs.c
index ad40e9b2c5aa..9c1524c56cc5 100644
--- a/fs/omap4_usbbootfs.c
+++ b/fs/omap4_usbbootfs.c
@@ -160,7 +160,6 @@ static const struct fs_legacy_ops omap4_usbbootfs_ops = {
 static struct fs_driver omap4_usbbootfs_driver = {
 	.read    = omap4_usbbootfs_read,
 	.legacy_ops = &omap4_usbbootfs_ops,
-	.flags	 = 0,
 	.drv = {
 		.probe	= omap4_usbbootfs_probe,
 		.remove	= omap4_usbbootfs_remove,
diff --git a/fs/pstore/fs.c b/fs/pstore/fs.c
index 157f24aaaf72..b77d238ade73 100644
--- a/fs/pstore/fs.c
+++ b/fs/pstore/fs.c
@@ -287,7 +287,6 @@ static const struct fs_legacy_ops pstore_ops = {
 static struct fs_driver pstore_driver = {
 	.read      = pstore_read,
 	.lseek     = pstore_lseek,
-	.flags     = FS_DRIVER_NO_DEV,
 	.legacy_ops = &pstore_ops,
 	.type = filetype_uimage,
 	.drv = {
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 6a824f56fdae..ab3c44270d43 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -444,7 +444,6 @@ static struct fs_driver ramfs_driver = {
 	.write     = ramfs_write,
 	.memmap    = ramfs_memmap,
 	.truncate  = ramfs_truncate,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = ramfs_probe,
 		.remove = ramfs_remove,
diff --git a/fs/ratpfs.c b/fs/ratpfs.c
index 5a1f8febd219..c3c3a248b681 100644
--- a/fs/ratpfs.c
+++ b/fs/ratpfs.c
@@ -456,7 +456,6 @@ static struct fs_driver ratpfs_driver = {
 	.write     = ratpfs_write,
 	.truncate  = ratpfs_truncate,
 	.legacy_ops = &ratpfs_ops,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = ratpfs_probe,
 		.remove = ratpfs_remove,
diff --git a/fs/smhfs.c b/fs/smhfs.c
index 425055d98ba8..e0e98f5213e9 100644
--- a/fs/smhfs.c
+++ b/fs/smhfs.c
@@ -150,7 +150,6 @@ static struct fs_driver smhfs_driver = {
 	.write     = smhfs_write,
 	.truncate  = smhfs_truncate,
 	.legacy_ops = &smhfs_ops,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = smhfs_probe,
 		.remove = smhfs_remove,
diff --git a/fs/tftp.c b/fs/tftp.c
index 81b87dfcf9e0..b2d5df4aa384 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -1115,7 +1115,6 @@ static struct fs_driver tftp_driver = {
 	.lseek     = tftp_lseek,
 	.write     = tftp_write,
 	.truncate  = tftp_truncate,
-	.flags     = 0,
 	.drv = {
 		.probe  = tftp_probe,
 		.remove = tftp_remove,
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index ef30ae3554f8..45b41ed7541d 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -504,7 +504,6 @@ static void ubifs_remove(struct device *dev)
 static struct fs_driver ubifs_driver = {
 	.read      = ubifs_read,
 	.type = filetype_ubifs,
-	.flags     = 0,
 	.drv = {
 		.probe  = ubifs_probe,
 		.remove = ubifs_remove,
diff --git a/fs/uimagefs.c b/fs/uimagefs.c
index 7ce1a15e0cbe..be268d3679d9 100644
--- a/fs/uimagefs.c
+++ b/fs/uimagefs.c
@@ -530,7 +530,6 @@ static struct fs_driver uimagefs_driver = {
 	.lseek     = uimagefs_lseek,
 	.ioctl	   = uimagefs_ioctl,
 	.legacy_ops = &uimagefs_ops,
-	.flags     = 0,
 	.type = filetype_uimage,
 	.drv = {
 		.probe  = uimagefs_probe,
diff --git a/include/fs.h b/include/fs.h
index 3b8dd93d41d6..fafd91343b5c 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -19,8 +19,6 @@ struct partition;
 struct node_d;
 struct stat;
 
-#define FS_DRIVER_NO_DEV	1
-
 /**
  * enum erase_type - Type of erase operation
  * @ERASE_TO_WRITE: Conduct low-level erase operation to prepare for a write
@@ -86,8 +84,6 @@ struct fs_driver {
 	struct driver drv;
 
 	enum filetype type;
-
-	unsigned long flags;
 };
 
 #define dev_to_fs_device(d) container_of(d, struct fs_device, dev)
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux