linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] watch_queue: Use page->private instead of page->index
@ 2024-11-25 17:54 Matthew Wilcox (Oracle)
  2024-11-27 10:05 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-11-25 17:54 UTC (permalink / raw)
  To: David Howells; +Cc: Matthew Wilcox (Oracle), linux-fsdevel, linux-mm

We are attempting to eliminate page->index, so use page->private
instead.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 kernel/watch_queue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/watch_queue.c b/kernel/watch_queue.c
index 1895fbc32bcb..5267adeaa403 100644
--- a/kernel/watch_queue.c
+++ b/kernel/watch_queue.c
@@ -71,7 +71,7 @@ static void watch_queue_pipe_buf_release(struct pipe_inode_info *pipe,
 	bit /= WATCH_QUEUE_NOTE_SIZE;
 
 	page = buf->page;
-	bit += page->index;
+	bit += page->private;
 
 	set_bit(bit, wqueue->notes_bitmap);
 	generic_pipe_buf_release(pipe, buf);
@@ -278,7 +278,7 @@ long watch_queue_set_size(struct pipe_inode_info *pipe, unsigned int nr_notes)
 		pages[i] = alloc_page(GFP_KERNEL);
 		if (!pages[i])
 			goto error_p;
-		pages[i]->index = i * WATCH_QUEUE_NOTES_PER_PAGE;
+		pages[i]->private = i * WATCH_QUEUE_NOTES_PER_PAGE;
 	}
 
 	bitmap = bitmap_alloc(nr_notes, GFP_KERNEL);
-- 
2.45.2



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] watch_queue: Use page->private instead of page->index
  2024-11-25 17:54 [PATCH] watch_queue: Use page->private instead of page->index Matthew Wilcox (Oracle)
@ 2024-11-27 10:05 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-11-27 10:05 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle)
  Cc: Christian Brauner, linux-fsdevel, linux-mm, David Howells

On Mon, 25 Nov 2024 17:54:41 +0000, Matthew Wilcox (Oracle) wrote:
> We are attempting to eliminate page->index, so use page->private
> instead.
> 
> 

Applied to the vfs-6.14.misc branch of the vfs/vfs.git tree.
Patches in the vfs-6.14.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.14.misc

[1/1] watch_queue: Use page->private instead of page->index
      https://git.kernel.org/vfs/vfs/c/d9939e632f62


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-27 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-25 17:54 [PATCH] watch_queue: Use page->private instead of page->index Matthew Wilcox (Oracle)
2024-11-27 10:05 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox