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
ad7999cd
Commit
ad7999cd
authored
Apr 10, 2019
by
Al Viro
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into work.icache
parents
15ade5d2
f51dcd0f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
10 deletions
+24
-10
fs/aio.c
fs/aio.c
+2
-2
lib/iov_iter.c
lib/iov_iter.c
+4
-0
security/apparmor/apparmorfs.c
security/apparmor/apparmorfs.c
+9
-4
security/inode.c
security/inode.c
+9
-4
No files found.
fs/aio.c
View file @
ad7999cd
...
...
@@ -1034,7 +1034,7 @@ static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx)
return
NULL
;
if
(
unlikely
(
!
get_reqs_available
(
ctx
)))
{
k
free
(
req
);
k
mem_cache_free
(
kiocb_cachep
,
req
);
return
NULL
;
}
...
...
@@ -1794,7 +1794,7 @@ static int __io_submit_one(struct kioctx *ctx, const struct iocb *iocb,
*/
eventfd
=
eventfd_ctx_fdget
(
iocb
->
aio_resfd
);
if
(
IS_ERR
(
eventfd
))
return
PTR_ERR
(
req
->
ki_
eventfd
);
return
PTR_ERR
(
eventfd
);
req
->
ki_eventfd
=
eventfd
;
}
...
...
lib/iov_iter.c
View file @
ad7999cd
...
...
@@ -1528,6 +1528,7 @@ EXPORT_SYMBOL(csum_and_copy_to_iter);
size_t
hash_and_copy_to_iter
(
const
void
*
addr
,
size_t
bytes
,
void
*
hashp
,
struct
iov_iter
*
i
)
{
#ifdef CONFIG_CRYPTO
struct
ahash_request
*
hash
=
hashp
;
struct
scatterlist
sg
;
size_t
copied
;
...
...
@@ -1537,6 +1538,9 @@ size_t hash_and_copy_to_iter(const void *addr, size_t bytes, void *hashp,
ahash_request_set_crypt
(
hash
,
&
sg
,
NULL
,
copied
);
crypto_ahash_update
(
hash
);
return
copied
;
#else
return
0
;
#endif
}
EXPORT_SYMBOL
(
hash_and_copy_to_iter
);
...
...
security/apparmor/apparmorfs.c
View file @
ad7999cd
...
...
@@ -123,17 +123,22 @@ static int aafs_show_path(struct seq_file *seq, struct dentry *dentry)
return
0
;
}
static
void
aafs_
evict_inode
(
struct
inode
*
inode
)
static
void
aafs_
i_callback
(
struct
rcu_head
*
head
)
{
truncate_inode_pages_final
(
&
inode
->
i_data
);
clear_inode
(
inode
);
struct
inode
*
inode
=
container_of
(
head
,
struct
inode
,
i_rcu
);
if
(
S_ISLNK
(
inode
->
i_mode
))
kfree
(
inode
->
i_link
);
free_inode_nonrcu
(
inode
);
}
static
void
aafs_destroy_inode
(
struct
inode
*
inode
)
{
call_rcu
(
&
inode
->
i_rcu
,
aafs_i_callback
);
}
static
const
struct
super_operations
aafs_super_ops
=
{
.
statfs
=
simple_statfs
,
.
evict_inode
=
aafs_evict
_inode
,
.
destroy_inode
=
aafs_destroy
_inode
,
.
show_path
=
aafs_show_path
,
};
...
...
security/inode.c
View file @
ad7999cd
...
...
@@ -27,17 +27,22 @@
static
struct
vfsmount
*
mount
;
static
int
mount_count
;
static
void
securityfs_
evict_inode
(
struct
inode
*
inode
)
static
void
securityfs_
i_callback
(
struct
rcu_head
*
head
)
{
truncate_inode_pages_final
(
&
inode
->
i_data
);
clear_inode
(
inode
);
struct
inode
*
inode
=
container_of
(
head
,
struct
inode
,
i_rcu
);
if
(
S_ISLNK
(
inode
->
i_mode
))
kfree
(
inode
->
i_link
);
free_inode_nonrcu
(
inode
);
}
static
void
securityfs_destroy_inode
(
struct
inode
*
inode
)
{
call_rcu
(
&
inode
->
i_rcu
,
securityfs_i_callback
);
}
static
const
struct
super_operations
securityfs_super_operations
=
{
.
statfs
=
simple_statfs
,
.
evict_inode
=
securityfs_evict
_inode
,
.
destroy_inode
=
securityfs_destroy
_inode
,
};
static
int
fill_super
(
struct
super_block
*
sb
,
void
*
data
,
int
silent
)
...
...
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