ceph: fix indentation in __get_snap_name()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 29 Jul 2019 09:33:08 +0000 (11:33 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/export.c

index 15ff1b09cfa29673cc08e6a1bd04cb5ab6c33085..020d39a85ecc12ab363b3a93ce6b84f120a22d9b 100644 (file)
@@ -458,33 +458,33 @@ static int __get_snap_name(struct dentry *parent, char *name,
                if (err < 0)
                        goto out;
 
-                rinfo = &req->r_reply_info;
-                for (i = 0; i < rinfo->dir_nr; i++) {
-                        rde = rinfo->dir_entries + i;
-                        BUG_ON(!rde->inode.in);
-                        if (ceph_snap(inode) ==
-                            le64_to_cpu(rde->inode.in->snapid)) {
-                                memcpy(name, rde->name, rde->name_len);
-                                name[rde->name_len] = '\0';
-                                err = 0;
-                                goto out;
-                        }
-                }
-
-                if (rinfo->dir_end)
-                        break;
-
-                BUG_ON(rinfo->dir_nr <= 0);
-                rde = rinfo->dir_entries + (rinfo->dir_nr - 1);
-                next_offset += rinfo->dir_nr;
-                last_name = kstrndup(rde->name, rde->name_len, GFP_KERNEL);
-                if (!last_name) {
-                        err = -ENOMEM;
-                        goto out;
-                }
-
-                ceph_mdsc_put_request(req);
-                req = NULL;
+               rinfo = &req->r_reply_info;
+               for (i = 0; i < rinfo->dir_nr; i++) {
+                       rde = rinfo->dir_entries + i;
+                       BUG_ON(!rde->inode.in);
+                       if (ceph_snap(inode) ==
+                           le64_to_cpu(rde->inode.in->snapid)) {
+                               memcpy(name, rde->name, rde->name_len);
+                               name[rde->name_len] = '\0';
+                               err = 0;
+                               goto out;
+                       }
+               }
+
+               if (rinfo->dir_end)
+                       break;
+
+               BUG_ON(rinfo->dir_nr <= 0);
+               rde = rinfo->dir_entries + (rinfo->dir_nr - 1);
+               next_offset += rinfo->dir_nr;
+               last_name = kstrndup(rde->name, rde->name_len, GFP_KERNEL);
+               if (!last_name) {
+                       err = -ENOMEM;
+                       goto out;
+               }
+
+               ceph_mdsc_put_request(req);
+               req = NULL;
        }
        err = -ENOENT;
 out: