namespace.c (e77bc7dc9af0ec53996367b2053dfafee83b7edb) namespace.c (0d56a4518d5eaf595a24ab2202e171330bb2ed72)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/fs/nfs/namespace.c
4 *
5 * Copyright (C) 2005 Trond Myklebust <Trond.Myklebust@netapp.com>
6 * - Modified by David Howells <dhowells@redhat.com>
7 *
8 * NFS namespace

--- 199 unchanged lines hidden (view full) ---

208}
209
210static int
211nfs_namespace_getattr(const struct path *path, struct kstat *stat,
212 u32 request_mask, unsigned int query_flags)
213{
214 if (NFS_FH(d_inode(path->dentry))->size != 0)
215 return nfs_getattr(path, stat, request_mask, query_flags);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/fs/nfs/namespace.c
4 *
5 * Copyright (C) 2005 Trond Myklebust <Trond.Myklebust@netapp.com>
6 * - Modified by David Howells <dhowells@redhat.com>
7 *
8 * NFS namespace

--- 199 unchanged lines hidden (view full) ---

208}
209
210static int
211nfs_namespace_getattr(const struct path *path, struct kstat *stat,
212 u32 request_mask, unsigned int query_flags)
213{
214 if (NFS_FH(d_inode(path->dentry))->size != 0)
215 return nfs_getattr(path, stat, request_mask, query_flags);
216 generic_fillattr(d_inode(path->dentry), stat);
216 generic_fillattr(&init_user_ns, d_inode(path->dentry), stat);
217 return 0;
218}
219
220static int
221nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr)
222{
223 if (NFS_FH(d_inode(dentry))->size != 0)
224 return nfs_setattr(dentry, attr);

--- 143 unchanged lines hidden ---
217 return 0;
218}
219
220static int
221nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr)
222{
223 if (NFS_FH(d_inode(dentry))->size != 0)
224 return nfs_setattr(dentry, attr);

--- 143 unchanged lines hidden ---