acl.c (d0e99511834b6828c960e978d9a8cb6e5731250d) acl.c (13e83a4923bea7c4f2f6714030cb7e56d20ef7e5)
1/*
2 * JFFS2 -- Journalling Flash File System, Version 2.
3 *
4 * Copyright © 2006 NEC Corporation
5 *
6 * Created by KaiGai Kohei <kaigai@ak.jp.nec.com>
7 *
8 * For licensing information, see the file 'LICENCE' in this directory.

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

224 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);
225 if (!value && rc == -ENODATA)
226 rc = 0;
227 kfree(value);
228
229 return rc;
230}
231
1/*
2 * JFFS2 -- Journalling Flash File System, Version 2.
3 *
4 * Copyright © 2006 NEC Corporation
5 *
6 * Created by KaiGai Kohei <kaigai@ak.jp.nec.com>
7 *
8 * For licensing information, see the file 'LICENCE' in this directory.

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

224 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);
225 if (!value && rc == -ENODATA)
226 rc = 0;
227 kfree(value);
228
229 return rc;
230}
231
232int jffs2_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
232int jffs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
233 struct posix_acl *acl, int type)
234{
235 int rc, xprefix;
236 struct inode *inode = d_inode(dentry);
237
238 switch (type) {
239 case ACL_TYPE_ACCESS:
240 xprefix = JFFS2_XPREFIX_ACL_ACCESS;

--- 73 unchanged lines hidden ---
233 struct posix_acl *acl, int type)
234{
235 int rc, xprefix;
236 struct inode *inode = d_inode(dentry);
237
238 switch (type) {
239 case ACL_TYPE_ACCESS:
240 xprefix = JFFS2_XPREFIX_ACL_ACCESS;

--- 73 unchanged lines hidden ---