summaryrefslogtreecommitdiffstats
path: root/include/linux/stat.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-03-07 21:29:12 -0500
committerChristian Brauner <brauner@kernel.org>2024-03-26 09:01:18 +0100
commit2a82bb02941fb53d1f8df2a360e7798ae3d9d962 (patch)
treebbc159905c9a051e549d225ecfff31c9b7fe6ec7 /include/linux/stat.h
parent4cece764965020c22cff7665b18a012006359095 (diff)
downloadlinux-stable-2a82bb02941fb53d1f8df2a360e7798ae3d9d962.tar.gz
linux-stable-2a82bb02941fb53d1f8df2a360e7798ae3d9d962.tar.bz2
linux-stable-2a82bb02941fb53d1f8df2a360e7798ae3d9d962.zip
statx: stx_subvol
Add a new statx field for (sub)volume identifiers, as implemented by btrfs and bcachefs. This includes bcachefs support; we'll definitely want btrfs support as well. Link: https://lore.kernel.org/linux-fsdevel/2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq/ Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Cc: Josef Bacik <josef@toxicpanda.com> Cc: Miklos Szeredi <mszeredi@redhat.com> Cc: Christian Brauner <brauner@kernel.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Link: https://lore.kernel.org/r/20240308022914.196982-1-kent.overstreet@linux.dev Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/stat.h')
-rw-r--r--include/linux/stat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stat.h b/include/linux/stat.h
index 52150570d37a..bf92441dbad2 100644
--- a/include/linux/stat.h
+++ b/include/linux/stat.h
@@ -53,6 +53,7 @@ struct kstat {
u32 dio_mem_align;
u32 dio_offset_align;
u64 change_cookie;
+ u64 subvol;
};
/* These definitions are internal to the kernel for now. Mainly used by nfsd. */