]> git.ipfire.org Git - thirdparty/linux.git/commit
propagate_one(): separate the "what should be the master for this copy" part
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 Jun 2025 03:09:47 +0000 (23:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Jun 2025 23:03:30 +0000 (19:03 -0400)
commite0f9396e244c0dcc29921ebc3254cb25d6eb31cf
tree2c050adafe3593c2dbed744b39471481caea831d
parent15e710b8bbb5c537c39ccaa23963d01c76946834
propagate_one(): separate the "what should be the master for this copy" part

When we create the first copy for a peer group, it becomes a slave of
one of the existing copies; take that logics into a separate helper -
find_master(parent, last_copy, original).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pnode.c