inode.c (6b16f5d12202a23d875915349cc031c07fe1b3ec) inode.c (488dee96bb62f0b3d9e678cf42574034d5b033a5)
1/*
2 * fs/kernfs/inode.c - kernfs inode implementation
3 *
4 * Copyright (c) 2001-3 Patrick Mochel
5 * Copyright (c) 2007 SUSE Linux Products GmbH
6 * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org>
7 *
8 * This file is released under the GPLv2.

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

58
59 simple_xattrs_init(&kn->iattr->xattrs);
60out_unlock:
61 ret = kn->iattr;
62 mutex_unlock(&iattr_mutex);
63 return ret;
64}
65
1/*
2 * fs/kernfs/inode.c - kernfs inode implementation
3 *
4 * Copyright (c) 2001-3 Patrick Mochel
5 * Copyright (c) 2007 SUSE Linux Products GmbH
6 * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org>
7 *
8 * This file is released under the GPLv2.

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

58
59 simple_xattrs_init(&kn->iattr->xattrs);
60out_unlock:
61 ret = kn->iattr;
62 mutex_unlock(&iattr_mutex);
63 return ret;
64}
65
66static int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr)
66int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr)
67{
68 struct kernfs_iattrs *attrs;
69 struct iattr *iattrs;
70 unsigned int ia_valid = iattr->ia_valid;
71
72 attrs = kernfs_iattrs(kn);
73 if (!attrs)
74 return -ENOMEM;

--- 312 unchanged lines hidden ---
67{
68 struct kernfs_iattrs *attrs;
69 struct iattr *iattrs;
70 unsigned int ia_valid = iattr->ia_valid;
71
72 attrs = kernfs_iattrs(kn);
73 if (!attrs)
74 return -ENOMEM;

--- 312 unchanged lines hidden ---