diff options
| author | David Howells <dhowells@redhat.com> | 2025-02-24 10:22:47 +0000 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2025-03-10 09:47:05 +0000 |
| commit | 4c5ad63f85ef984cc809538b2dcbc113aed82330 (patch) | |
| tree | 8c72b403406035accbe3246b4f10c7553a96ad8b /fs/afs/dir.c | |
| parent | 823869e1e61607ab0d433de3c8abed221dc80a5e (diff) | |
| download | linux-next-4c5ad63f85ef984cc809538b2dcbc113aed82330.tar.gz linux-next-4c5ad63f85ef984cc809538b2dcbc113aed82330.zip | |
afs: Remove the "autocell" mount option
Remove the "autocell" mount option. It was an attempt to do automounting
of arbitrary cells based on what the user looked up but within the root
directory of a mounted volume. This isn't really the right thing to do,
and using the "dyn" mount option to get the dynamic root is the right way
to do it. The kafs-client package uses "-o dyn" when mounting /afs, so it
should be safe to drop "-o autocell".
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20250224234154.2014840-7-dhowells@redhat.com/ # v1
Link: https://lore.kernel.org/r/20250310094206.801057-3-dhowells@redhat.com/ # v4
Diffstat (limited to 'fs/afs/dir.c')
| -rw-r--r-- | fs/afs/dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 02cbf38e1a77..9f62b8938350 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -1004,9 +1004,8 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, afs_stat_v(dvnode, n_lookup); inode = afs_do_lookup(dir, dentry); if (inode == ERR_PTR(-ENOENT)) - inode = afs_try_auto_mntpt(dentry, dir); - - if (!IS_ERR_OR_NULL(inode)) + inode = NULL; + else if (!IS_ERR_OR_NULL(inode)) fid = AFS_FS_I(inode)->fid; _debug("splice %p", dentry->d_inode); |
