Commit c814153c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

nvme-fc: fold t fc_update_appid into fc_appid_store

No need for this wrapper.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-4-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 55d7baa3
...@@ -3857,12 +3857,10 @@ static int fc_parse_cgrpid(const char *buf, u64 *id) ...@@ -3857,12 +3857,10 @@ static int fc_parse_cgrpid(const char *buf, u64 *id)
} }
/* /*
* fc_update_appid: Parse and update the appid in the blkcg associated with * Parse and update the appid in the blkcg associated with the cgroupid.
* cgroupid.
* @buf: buf contains both cgrpid and appid info
* @count: size of the buffer
*/ */
static int fc_update_appid(const char *buf, size_t count) static ssize_t fc_appid_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{ {
u64 cgrp_id; u64 cgrp_id;
int appid_len = 0; int appid_len = 0;
...@@ -3890,17 +3888,6 @@ static int fc_update_appid(const char *buf, size_t count) ...@@ -3890,17 +3888,6 @@ static int fc_update_appid(const char *buf, size_t count)
return ret; return ret;
return count; return count;
} }
static ssize_t fc_appid_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
int ret = 0;
ret = fc_update_appid(buf, count);
if (ret < 0)
return -EINVAL;
return count;
}
static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store); static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store);
#endif /* CONFIG_BLK_CGROUP_FC_APPID */ #endif /* CONFIG_BLK_CGROUP_FC_APPID */
......
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