Skip to content

Commit 1197867

Browse files
Matthew Wilcox (Oracle)brauner
authored andcommitted
watch_queue: Use page->private instead of page->index
We are attempting to eliminate page->index, so use page->private instead. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent d727935 commit 1197867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/watch_queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void watch_queue_pipe_buf_release(struct pipe_inode_info *pipe,
7171
bit /= WATCH_QUEUE_NOTE_SIZE;
7272

7373
page = buf->page;
74-
bit += page->index;
74+
bit += page->private;
7575

7676
set_bit(bit, wqueue->notes_bitmap);
7777
generic_pipe_buf_release(pipe, buf);
@@ -278,7 +278,7 @@ long watch_queue_set_size(struct pipe_inode_info *pipe, unsigned int nr_notes)
278278
pages[i] = alloc_page(GFP_KERNEL);
279279
if (!pages[i])
280280
goto error_p;
281-
pages[i]->index = i * WATCH_QUEUE_NOTES_PER_PAGE;
281+
pages[i]->private = i * WATCH_QUEUE_NOTES_PER_PAGE;
282282
}
283283

284284
bitmap = bitmap_alloc(nr_notes, GFP_KERNEL);

0 commit comments

Comments
 (0)