diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-11 18:03:19 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:15 +0200 |
commit | 2027875bd8318171159495c948461eae2f84936d (patch) | |
tree | 891d2abcd3f50b2bd3bf9b3b60cd325aea5fad66 /fs/bcachefs/fs-ioctl.c | |
parent | bcachefs: Improve error messages in trans_mark_reflink_p() (diff) | |
download | linux-2027875bd8318171159495c948461eae2f84936d.tar.xz linux-2027875bd8318171159495c948461eae2f84936d.zip |
bcachefs: Add BCH_SUBVOLUME_UNLINKED
Snapshot deletion needs to become a multi step process, where we unlink,
then tear down the page cache, then delete the subvolume - the deleting
flag is equivalent to an inode with i_nlink = 0.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/fs-ioctl.c')
-rw-r--r-- | fs/bcachefs/fs-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c index a12b591ec9ca..de94895ace9f 100644 --- a/fs/bcachefs/fs-ioctl.c +++ b/fs/bcachefs/fs-ioctl.c @@ -441,7 +441,7 @@ static long bch2_ioctl_subvolume_destroy(struct bch_fs *c, struct file *filp, dir = path.dentry->d_parent->d_inode; - ret = __bch2_unlink(dir, path.dentry, 1); + ret = __bch2_unlink(dir, path.dentry, true); if (!ret) { fsnotify_rmdir(dir, path.dentry); d_delete(path.dentry); |