[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210428092643.y2z2bezd2evu5kak@sanjana-VirtualBox>
Date: Wed, 28 Apr 2021 14:56:43 +0530
From: Sanjana Srinidhi <sanjanasrinidhi1810@...il.com>
To: dan.j.williams@...el.com, vishal.l.verma@...el.com,
dave.jiang@...el.com
Cc: linux-nvdimm@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Add blank line after declarations
Blank line is added after declarations to maintain code uniformity.
Signed-off-by: Sanjana Srinidhi <sanjanasrinidhi1810@...il.com>
---
drivers/dax/super.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/dax/super.c b/drivers/dax/super.c
index 5fa6ae9dbc8b..1f7cd75e379f 100644
--- a/drivers/dax/super.c
+++ b/drivers/dax/super.c
@@ -477,6 +477,7 @@ static struct dax_device *to_dax_dev(struct inode *inode)
static void dax_free_inode(struct inode *inode)
{
struct dax_device *dax_dev = to_dax_dev(inode);
+
kfree(dax_dev->host);
dax_dev->host = NULL;
if (inode->i_rdev)
@@ -487,6 +488,7 @@ static void dax_free_inode(struct inode *inode)
static void dax_destroy_inode(struct inode *inode)
{
struct dax_device *dax_dev = to_dax_dev(inode);
+
WARN_ONCE(test_bit(DAXDEV_ALIVE, &dax_dev->flags),
"kill_dax() must be called before final iput()\n");
}
@@ -502,6 +504,7 @@ static const struct super_operations dax_sops = {
static int dax_init_fs_context(struct fs_context *fc)
{
struct pseudo_fs_context *ctx = init_pseudo(fc, DAXFS_MAGIC);
+
if (!ctx)
return -ENOMEM;
ctx->ops = &dax_sops;
--
2.25.1
Powered by blists - more mailing lists