Commit 26aab3a
fs: export may_create() as may_create_dentry()
For many years btrfs as been using a copy of may_create() in
fs/btrfs/ioctl.c:btrfs_may_create(). Everytime may_create() is updated we
need to update the btrfs copy, and this is a maintenance burden. Currently
there are minor differences between both because the btrfs side lacks
updates done in may_create().
Export may_create() so that btrfs can use it and with the less generic
name may_create_dentry().
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Link: https://patch.msgid.link/ce5174bca079f4cdcbb8dd145f0924feb1f227cd.1768307858.git.fdmanana@suse.com
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 173e937 commit 26aab3a
2 files changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3657 | 3657 | | |
3658 | 3658 | | |
3659 | 3659 | | |
3660 | | - | |
3661 | | - | |
| 3660 | + | |
| 3661 | + | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | 3664 | | |
| |||
3670 | 3670 | | |
3671 | 3671 | | |
3672 | 3672 | | |
| 3673 | + | |
3673 | 3674 | | |
3674 | 3675 | | |
3675 | 3676 | | |
| |||
4116 | 4117 | | |
4117 | 4118 | | |
4118 | 4119 | | |
4119 | | - | |
| 4120 | + | |
4120 | 4121 | | |
4121 | 4122 | | |
4122 | 4123 | | |
| |||
4142 | 4143 | | |
4143 | 4144 | | |
4144 | 4145 | | |
4145 | | - | |
| 4146 | + | |
4146 | 4147 | | |
4147 | 4148 | | |
4148 | 4149 | | |
| |||
4961 | 4962 | | |
4962 | 4963 | | |
4963 | 4964 | | |
4964 | | - | |
| 4965 | + | |
4965 | 4966 | | |
4966 | 4967 | | |
4967 | 4968 | | |
| |||
5107 | 5108 | | |
5108 | 5109 | | |
5109 | 5110 | | |
5110 | | - | |
| 5111 | + | |
5111 | 5112 | | |
5112 | 5113 | | |
5113 | 5114 | | |
| |||
5497 | 5498 | | |
5498 | 5499 | | |
5499 | 5500 | | |
5500 | | - | |
| 5501 | + | |
5501 | 5502 | | |
5502 | 5503 | | |
5503 | 5504 | | |
| |||
5605 | 5606 | | |
5606 | 5607 | | |
5607 | 5608 | | |
5608 | | - | |
| 5609 | + | |
5609 | 5610 | | |
5610 | 5611 | | |
5611 | 5612 | | |
| |||
5822 | 5823 | | |
5823 | 5824 | | |
5824 | 5825 | | |
5825 | | - | |
| 5826 | + | |
5826 | 5827 | | |
5827 | 5828 | | |
5828 | 5829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2659 | 2659 | | |
2660 | 2660 | | |
2661 | 2661 | | |
| 2662 | + | |
| 2663 | + | |
2662 | 2664 | | |
2663 | 2665 | | |
2664 | 2666 | | |
| |||
0 commit comments