No need for this wrapper.
Unified · Split
| @@ -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 with | 3860 | * 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 | */ |
| 3865 | static int fc_update_appid(const char *buf, size_t count) | 3862 | static 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 | |||
| 3894 | static 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 | } | ||
| 3904 | static DEVICE_ATTR(appid_store, 0200, NULL, fc_appid_store); | 3891 | static 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 | ||