Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
72c04902
Commit
72c04902
authored
Jun 24, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get "no acls for this inode" right, fix shmem breakage
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
641cf4a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
fs/btrfs/inode.c
fs/btrfs/inode.c
+2
-4
fs/jffs2/acl.c
fs/jffs2/acl.c
+1
-2
include/linux/posix_acl.h
include/linux/posix_acl.h
+9
-0
mm/shmem.c
mm/shmem.c
+1
-4
No files found.
fs/btrfs/inode.c
View file @
72c04902
...
...
@@ -2122,10 +2122,8 @@ static void btrfs_read_locked_inode(struct inode *inode)
* any xattrs or acls
*/
maybe_acls
=
acls_after_inode_item
(
leaf
,
path
->
slots
[
0
],
inode
->
i_ino
);
if
(
!
maybe_acls
)
{
inode
->
i_acl
=
NULL
;
inode
->
i_default_acl
=
NULL
;
}
if
(
!
maybe_acls
)
cache_no_acl
(
inode
);
BTRFS_I
(
inode
)
->
block_group
=
btrfs_find_block_group
(
root
,
0
,
alloc_group_block
,
0
);
...
...
fs/jffs2/acl.c
View file @
72c04902
...
...
@@ -284,8 +284,7 @@ int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, int *i_mode)
struct
posix_acl
*
acl
,
*
clone
;
int
rc
;
inode
->
i_default_acl
=
NULL
;
inode
->
i_acl
=
NULL
;
cache_no_acl
(
inode
);
if
(
S_ISLNK
(
*
i_mode
))
return
0
;
/* Symlink always has no-ACL */
...
...
include/linux/posix_acl.h
View file @
72c04902
...
...
@@ -148,4 +148,13 @@ static inline void forget_cached_acl(struct inode *inode, int type)
posix_acl_release
(
old
);
}
#endif
static
inline
void
cache_no_acl
(
struct
inode
*
inode
)
{
#ifdef CONFIG_FS_POSIX_ACL
inode
->
i_acl
=
NULL
;
inode
->
i_default_acl
=
NULL
;
#endif
}
#endif
/* __LINUX_POSIX_ACL_H */
mm/shmem.c
View file @
72c04902
...
...
@@ -1558,6 +1558,7 @@ static struct inode *shmem_get_inode(struct super_block *sb, int mode,
spin_lock_init
(
&
info
->
lock
);
info
->
flags
=
flags
&
VM_NORESERVE
;
INIT_LIST_HEAD
(
&
info
->
swaplist
);
cache_no_acl
(
inode
);
switch
(
mode
&
S_IFMT
)
{
default:
...
...
@@ -2379,10 +2380,6 @@ static struct inode *shmem_alloc_inode(struct super_block *sb)
p
=
(
struct
shmem_inode_info
*
)
kmem_cache_alloc
(
shmem_inode_cachep
,
GFP_KERNEL
);
if
(
!
p
)
return
NULL
;
#ifdef CONFIG_TMPFS_POSIX_ACL
p
->
vfs_inode
.
i_acl
=
NULL
;
p
->
vfs_inode
.
i_default_acl
=
NULL
;
#endif
return
&
p
->
vfs_inode
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment