History

nvme-fc: fold t fc_update_appid into fc_appid_store

No need for this wrapper.

Christoph Hellwig committed 4 years ago

Commit c8141531 parent 55d7baa1 file · +3 −16Browse files

Unified · Split

drivers/nvme/host/fc.c+3−16
@@ -3857,12 +3857,10 @@ static int fc_parse_cgrpid(const char *buf, u64 *id) · 3856 unmodified lines
3857}3857}
3858 3858
3859/*3859/*
3860 * fc_update_appid: Parse and update the appid in the blkcg associated with3860 * Parse and update the appid in the blkcg associated with the cgroupid.
3861 * cgroupid.
3862 * @buf: buf contains both cgrpid and appid info
3863 * @count: size of the buffer
3864 */3861 */
3865static int fc_update_appid(const char *buf, size_t count)3862static ssize_t fc_appid_store(struct device *dev,
3863 struct device_attribute *attr, const char *buf, size_t count)
3866{3864{
3867 u64 cgrp_id;3865 u64 cgrp_id;
3868 int appid_len = 0;3866 int appid_len = 0;
@@ -3890,17 +3888,6 @@ static int fc_update_appid(const char *buf, size_t count) · 21 unmodified lines
3890 return ret;3888 return ret;
3891 return count;3889 return count;
3892}3890}
3893
3894static ssize_t fc_appid_store(struct device *dev,
3895 struct device_attribute *attr, const char *buf, size_t count)
3896{
3897 int ret = 0;
3898
3899 ret = fc_update_appid(buf, count);
3900 if (ret < 0)
3901 return -EINVAL;
3902 return count;
3903}
3904static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store);3891static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store);
3905#endif /* CONFIG_BLK_CGROUP_FC_APPID */3892#endif /* CONFIG_BLK_CGROUP_FC_APPID */
3906 3893