summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-04-09 12:24:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-04-09 12:24:36 +0200
commit9047e0620b50a26838990fcae83c3d007c7e1d28 (patch)
tree0acdbf2dac0f9c61e75197398246eb7bf07d7904 /fs
parentd44e3d642171fa506dcc5a6c1b2babe6b4b813bf (diff)
parent747be0f2bbedcc3bc397ab8be289885ee24e0dbf (diff)
downloadbarebox-9047e0620b50a26838990fcae83c3d007c7e1d28.tar.gz
barebox-9047e0620b50a26838990fcae83c3d007c7e1d28.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'fs')
-rw-r--r--fs/Kconfig10
-rw-r--r--fs/ramfs.c12
2 files changed, 7 insertions, 15 deletions
diff --git a/fs/Kconfig b/fs/Kconfig
index 76a3846929..e3a95321c7 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -25,7 +25,7 @@ config FS_CRAMFS
select ZLIB
prompt "cramfs support"
-source fs/ext4/Kconfig
+source "fs/ext4/Kconfig"
config FS_RAMFS
bool
@@ -70,8 +70,8 @@ config FS_EFIVARFS
help
This filesystem driver provides access to EFI variables.
-source fs/fat/Kconfig
-source fs/ubifs/Kconfig
+source "fs/fat/Kconfig"
+source "fs/ubifs/Kconfig"
config FS_BPKFS
bool
@@ -106,8 +106,8 @@ config FS_SMHFS
located on a debugging host connected to the target running
Barebox
-source fs/pstore/Kconfig
-source fs/squashfs/Kconfig
+source "fs/pstore/Kconfig"
+source "fs/squashfs/Kconfig"
config FS_RATP
bool
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 3046afef3b..7e7dc7aca9 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -43,8 +43,6 @@ struct ramfs_inode {
char *symlink;
ulong mode;
- struct handle_d *handle;
-
ulong size;
struct ramfs_chunk *data;
@@ -101,8 +99,6 @@ static struct inode *ramfs_get_inode(struct super_block *sb, const struct inode
return inode;
}
-static int chunks = 0;
-
static struct ramfs_chunk *ramfs_get_chunk(void)
{
struct ramfs_chunk *data = malloc(sizeof(struct ramfs_chunk));
@@ -115,7 +111,6 @@ static struct ramfs_chunk *ramfs_get_chunk(void)
return NULL;
}
data->next = NULL;
- chunks++;
return data;
}
@@ -124,7 +119,6 @@ static void ramfs_put_chunk(struct ramfs_chunk *data)
{
free(data->data);
free(data);
- chunks--;
}
/* ---------------------------------------------------------------*/
@@ -137,10 +131,8 @@ ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode)
if (!inode)
return -ENOSPC;
- if (inode) {
- d_instantiate(dentry, inode);
- dget(dentry); /* Extra count - pin the dentry in core */
- }
+ d_instantiate(dentry, inode);
+ dget(dentry); /* Extra count - pin the dentry in core */
return 0;
}