diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-11 19:03:19 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:15 +0300 |
commit | 2027875bd8318171159495c948461eae2f84936d (patch) | |
tree | 891d2abcd3f50b2bd3bf9b3b60cd325aea5fad66 /fs/bcachefs/subvolume_types.h | |
parent | f3b1e1937973624d3bc5f3ba0824e228ae256b88 (diff) | |
download | linux-2027875bd8318171159495c948461eae2f84936d.tar.xz |
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/subvolume_types.h')
-rw-r--r-- | fs/bcachefs/subvolume_types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/bcachefs/subvolume_types.h b/fs/bcachefs/subvolume_types.h new file mode 100644 index 000000000000..9410b9587591 --- /dev/null +++ b/fs/bcachefs/subvolume_types.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _BCACHEFS_SUBVOLUME_TYPES_H +#define _BCACHEFS_SUBVOLUME_TYPES_H + +struct snapshot_id_list { + u32 nr; + u32 size; + u32 *d; +}; + +#endif /* _BCACHEFS_SUBVOLUME_TYPES_H */ |