bcachefs: Don't allow hardlinks when inherited attrs would change
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 12 Oct 2022 20:12:27 +0000 (16:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:43 +0000 (17:09 -0400)
commitbf9cb250edf776454d0600b4341c6667974bedb8
tree49979a158d3d2af3f4ea81b826e25355bdc39829
parentf866870f5dbe9c9fb745f5a24bb30b6477ec619a
bcachefs: Don't allow hardlinks when inherited attrs would change

This is the right thing to do, and conforms with our own behaviour on
rename and xfs's behaviour on hardlink.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-common.c