Skip to content

Commit fedd062

Browse files
committed
Revert "fs/9p: remove redundant pointer v9ses"
This reverts commit 10211b4. This is a requirement to revert commit 724a084 ("fs/9p: simplify iget to remove unnecessary paths"), see that revert for details. Fixes: 724a084 ("fs/9p: simplify iget to remove unnecessary paths") Reported-by: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck Cc: [email protected] # v6.9+ Message-ID: <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
1 parent f69999b commit fedd062

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/9p/vfs_inode_dotl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ static int v9fs_vfs_mkdir_dotl(struct mnt_idmap *idmap,
297297
umode_t omode)
298298
{
299299
int err;
300+
struct v9fs_session_info *v9ses;
300301
struct p9_fid *fid = NULL, *dfid = NULL;
301302
kgid_t gid;
302303
const unsigned char *name;
@@ -306,6 +307,7 @@ static int v9fs_vfs_mkdir_dotl(struct mnt_idmap *idmap,
306307
struct posix_acl *dacl = NULL, *pacl = NULL;
307308

308309
p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry);
310+
v9ses = v9fs_inode2v9ses(dir);
309311

310312
omode |= S_IFDIR;
311313
if (dir->i_mode & S_ISGID)
@@ -737,6 +739,7 @@ v9fs_vfs_mknod_dotl(struct mnt_idmap *idmap, struct inode *dir,
737739
kgid_t gid;
738740
const unsigned char *name;
739741
umode_t mode;
742+
struct v9fs_session_info *v9ses;
740743
struct p9_fid *fid = NULL, *dfid = NULL;
741744
struct inode *inode;
742745
struct p9_qid qid;
@@ -746,6 +749,7 @@ v9fs_vfs_mknod_dotl(struct mnt_idmap *idmap, struct inode *dir,
746749
dir->i_ino, dentry, omode,
747750
MAJOR(rdev), MINOR(rdev));
748751

752+
v9ses = v9fs_inode2v9ses(dir);
749753
dfid = v9fs_parent_fid(dentry);
750754
if (IS_ERR(dfid)) {
751755
err = PTR_ERR(dfid);

0 commit comments

Comments
 (0)