diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | 099c614f1c3c6f814fcf5c440932dbe3eab8ba00 (patch) | |
tree | a2dace06d44130b6255614fcf41b6066e36e707e /fs/legacy.c | |
parent | f662623968e17a5044ba546fd1834ceb40241e48 (diff) | |
download | barebox-099c614f1c3c6f814fcf5c440932dbe3eab8ba00.tar.gz |
Rename struct fs_device_d to fs_device
Remove the meaningless '_d' suffix.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-5-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/legacy.c')
-rw-r--r-- | fs/legacy.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/legacy.c b/fs/legacy.c index 779f546294..7e886e7ae9 100644 --- a/fs/legacy.c +++ b/fs/legacy.c @@ -19,7 +19,7 @@ static int legacy_iterate(struct file *file, struct dir_context *ctx) struct dentry *dentry = file->f_path.dentry; struct inode *dir = d_inode(dentry); struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct dir *d; struct dirent *dirent; char *pathname; @@ -48,7 +48,7 @@ static struct dentry *legacy_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct inode *inode; char *pathname; struct stat s; @@ -72,7 +72,7 @@ static struct dentry *legacy_lookup(struct inode *dir, struct dentry *dentry, static int legacy_create(struct inode *dir, struct dentry *dentry, umode_t mode) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct inode *inode; char *pathname; int ret; @@ -99,7 +99,7 @@ static int legacy_create(struct inode *dir, struct dentry *dentry, umode_t mode) static int legacy_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct inode *inode; char *pathname; int ret; @@ -127,7 +127,7 @@ static int legacy_dir_is_empty(struct dentry *dentry) { struct inode *dir = d_inode(dentry); struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct dir *d; struct dirent *dirent; char *pathname; @@ -147,7 +147,7 @@ static int legacy_dir_is_empty(struct dentry *dentry) static int legacy_rmdir(struct inode *dir, struct dentry *dentry) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); char *pathname; int ret; @@ -176,7 +176,7 @@ static int legacy_rmdir(struct inode *dir, struct dentry *dentry) static int legacy_unlink(struct inode *dir, struct dentry *dentry) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); char *pathname; int ret; @@ -202,7 +202,7 @@ static int legacy_symlink(struct inode *dir, struct dentry *dentry, const char *dest) { struct super_block *sb = dir->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); struct inode *inode; char *pathname; int ret; @@ -230,7 +230,7 @@ static int legacy_symlink(struct inode *dir, struct dentry *dentry, static const char *legacy_get_link(struct dentry *dentry, struct inode *inode) { struct super_block *sb = inode->i_sb; - struct fs_device_d *fsdev = container_of(sb, struct fs_device_d, sb); + struct fs_device *fsdev = container_of(sb, struct fs_device, sb); char *pathname; int ret; char link[PATH_MAX] = {}; @@ -304,7 +304,7 @@ static struct inode *legacy_get_inode(struct super_block *sb, const struct inode return inode; } -int fs_init_legacy(struct fs_device_d *fsdev) +int fs_init_legacy(struct fs_device *fsdev) { struct inode *inode; |