mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
don't open-code file_inode()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e5517c2a5a
commit
450630975d
18 changed files with 40 additions and 46 deletions
6
fs/aio.c
6
fs/aio.c
|
|
@ -277,10 +277,10 @@ static void put_aio_ring_file(struct kioctx *ctx)
|
|||
struct address_space *i_mapping;
|
||||
|
||||
if (aio_ring_file) {
|
||||
truncate_setsize(aio_ring_file->f_inode, 0);
|
||||
truncate_setsize(file_inode(aio_ring_file), 0);
|
||||
|
||||
/* Prevent further access to the kioctx from migratepages */
|
||||
i_mapping = aio_ring_file->f_inode->i_mapping;
|
||||
i_mapping = aio_ring_file->f_mapping;
|
||||
spin_lock(&i_mapping->private_lock);
|
||||
i_mapping->private_data = NULL;
|
||||
ctx->aio_ring_file = NULL;
|
||||
|
|
@ -483,7 +483,7 @@ static int aio_setup_ring(struct kioctx *ctx)
|
|||
|
||||
for (i = 0; i < nr_pages; i++) {
|
||||
struct page *page;
|
||||
page = find_or_create_page(file->f_inode->i_mapping,
|
||||
page = find_or_create_page(file->f_mapping,
|
||||
i, GFP_HIGHUSER | __GFP_ZERO);
|
||||
if (!page)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue