vfs_inode.c (2f221d6f7b881d95de1f356a3097d755ab1e47d4) | vfs_inode.c (0d56a4518d5eaf595a24ab2202e171330bb2ed72) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/fs/9p/vfs_inode.c 4 * 5 * This file contains vfs inode ops for the 9P2000 protocol. 6 * 7 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 8 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> --- 1013 unchanged lines hidden (view full) --- 1022 struct dentry *dentry = path->dentry; 1023 struct v9fs_session_info *v9ses; 1024 struct p9_fid *fid; 1025 struct p9_wstat *st; 1026 1027 p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry); 1028 v9ses = v9fs_dentry2v9ses(dentry); 1029 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/fs/9p/vfs_inode.c 4 * 5 * This file contains vfs inode ops for the 9P2000 protocol. 6 * 7 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 8 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> --- 1013 unchanged lines hidden (view full) --- 1022 struct dentry *dentry = path->dentry; 1023 struct v9fs_session_info *v9ses; 1024 struct p9_fid *fid; 1025 struct p9_wstat *st; 1026 1027 p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry); 1028 v9ses = v9fs_dentry2v9ses(dentry); 1029 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { |
1030 generic_fillattr(d_inode(dentry), stat); | 1030 generic_fillattr(&init_user_ns, d_inode(dentry), stat); |
1031 return 0; 1032 } 1033 fid = v9fs_fid_lookup(dentry); 1034 if (IS_ERR(fid)) 1035 return PTR_ERR(fid); 1036 1037 st = p9_client_stat(fid); 1038 p9_client_clunk(fid); 1039 if (IS_ERR(st)) 1040 return PTR_ERR(st); 1041 1042 v9fs_stat2inode(st, d_inode(dentry), dentry->d_sb, 0); | 1031 return 0; 1032 } 1033 fid = v9fs_fid_lookup(dentry); 1034 if (IS_ERR(fid)) 1035 return PTR_ERR(fid); 1036 1037 st = p9_client_stat(fid); 1038 p9_client_clunk(fid); 1039 if (IS_ERR(st)) 1040 return PTR_ERR(st); 1041 1042 v9fs_stat2inode(st, d_inode(dentry), dentry->d_sb, 0); |
1043 generic_fillattr(d_inode(dentry), stat); | 1043 generic_fillattr(&init_user_ns, d_inode(dentry), stat); |
1044 1045 p9stat_free(st); 1046 kfree(st); 1047 return 0; 1048} 1049 1050/** 1051 * v9fs_vfs_setattr - set file metadata --- 395 unchanged lines hidden --- | 1044 1045 p9stat_free(st); 1046 kfree(st); 1047 return 0; 1048} 1049 1050/** 1051 * v9fs_vfs_setattr - set file metadata --- 395 unchanged lines hidden --- |