]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: sysfs whitespace cleanup
authorSage Weil <sage@newdream.net>
Mon, 9 Mar 2009 21:56:40 +0000 (14:56 -0700)
committerSage Weil <sage@newdream.net>
Mon, 9 Mar 2009 21:57:22 +0000 (14:57 -0700)
Wrap at 80 columns...

src/kernel/sysfs.c

index 37dda51a8aff965915962f853ee45b5d8bf69343..15e6d1250f760b1b20a78bf4f9c4128ed3eb02fe 100644 (file)
@@ -11,38 +11,38 @@ static struct kobject ceph_kobj;
  */
 
 #define DEF_ATTR_OP(name) \
-static ssize_t name##_attr_show(struct kobject *kobj, struct attribute *attr,  \
-                               char *buf)                                      \
-{                                                                              \
-       struct name##_attr *a =                                                 \
-               container_of(attr, struct name##_attr, attr);                   \
-       struct name *c = container_of(kobj, struct name, kobj);                 \
-       ssize_t ret = -EIO;                                                     \
-                                                                               \
-       if (a->show)                                                            \
-               ret = a->show(c, a, buf);                                       \
-       return ret;                                                             \
-}                                                                              \
-                                                                               \
-static ssize_t name##_attr_store(struct kobject *kobj, struct attribute *attr, \
-                                const char *buf, size_t count)                 \
-{                                                                              \
-       struct name##_attr *a = container_of(attr, struct name##_attr, attr);   \
-       struct name *c = container_of(kobj, struct name, kobj);                 \
-       ssize_t ret = -EIO;                                                     \
-                                                                               \
-       if (a->store)                                                           \
-               ret = a->store(c, a, buf, count);                               \
-       return ret;                                                             \
-}                                                                              \
-                                                                               \
-static struct sysfs_ops name##_sysfs_ops = {                                   \
-       .show   = name##_attr_show,                                             \
-       .store  = name##_attr_store,                                            \
-};                                                                             \
-                                                                               \
-static struct kobj_type name##_ops = {                                         \
-       .sysfs_ops = &name##_sysfs_ops,                                         \
+static ssize_t name##_attr_show(struct kobject *kobj, struct attribute *attr,\
+                               char *buf)                              \
+{                                                                      \
+       struct name##_attr *a =                                         \
+               container_of(attr, struct name##_attr, attr);           \
+       struct name *c = container_of(kobj, struct name, kobj);         \
+       ssize_t ret = -EIO;                                             \
+                                                                       \
+       if (a->show)                                                    \
+               ret = a->show(c, a, buf);                               \
+       return ret;                                                     \
+}                                                                      \
+                                                                       \
+static ssize_t name##_attr_store(struct kobject *kobj, struct attribute *attr, \
+                                const char *buf, size_t count)         \
+{                                                                      \
+       struct name##_attr *a = container_of(attr, struct name##_attr, attr); \
+       struct name *c = container_of(kobj, struct name, kobj);         \
+       ssize_t ret = -EIO;                                             \
+                                                                       \
+       if (a->store)                                                   \
+               ret = a->store(c, a, buf, count);                       \
+       return ret;                                                     \
+}                                                                      \
+                                                                       \
+static struct sysfs_ops name##_sysfs_ops = {                           \
+       .show   = name##_attr_show,                                     \
+       .store  = name##_attr_store,                                    \
+};                                                                     \
+                                                                       \
+static struct kobj_type name##_ops = {                                 \
+       .sysfs_ops = &name##_sysfs_ops,                                 \
 };
 
 #define ADD_ENTITY_ATTR(ent, a, n, m, sh, st) \