]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: kill retry_estale() in bch2_ioctl_subvolume_create()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 11 Oct 2024 20:21:14 +0000 (16:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 11 Oct 2024 23:16:40 +0000 (19:16 -0400)
this was likely originally cribbed, and has been dead code, and Al is
working on removing it from the tree.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-ioctl.c

index 405cf08bda3473c8cdf26ee51f38e6b7c1a9d13f..15725b4ce393ccbb9a7b34b09d367dd79776fc55 100644 (file)
@@ -406,7 +406,7 @@ static long bch2_ioctl_subvolume_create(struct bch_fs *c, struct file *filp,
                sync_inodes_sb(c->vfs_sb);
                up_read(&c->vfs_sb->s_umount);
        }
-retry:
+
        if (arg.src_ptr) {
                error = user_path_at(arg.dirfd,
                                (const char __user *)(unsigned long)arg.src_ptr,
@@ -486,11 +486,6 @@ err3:
 err2:
        if (arg.src_ptr)
                path_put(&src_path);
-
-       if (retry_estale(error, lookup_flags)) {
-               lookup_flags |= LOOKUP_REVAL;
-               goto retry;
-       }
 err1:
        return error;
 }