summaryrefslogtreecommitdiff
path: root/fs/btrfs/compat.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-06-24 18:03:12 +0200
committerTom Rini <trini@konsulko.com>2020-09-07 21:00:36 -0400
commit8098da7094b181b92e5a6fb284e161e012eca7d7 (patch)
treecbe78a36495fecfd635519f5c1d83b5ee7c9078d /fs/btrfs/compat.h
parente3427184f38a3a5d2ac9a3c200a5c3fc17592ec6 (diff)
fs: btrfs: Introduce function to resolve path in one subvolume
This patch introduces a new function, get_path_in_subvolume(), which resolves inode number into path inside a subvolume. This function will be later used for btrfs subvolume list functionality. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'fs/btrfs/compat.h')
-rw-r--r--fs/btrfs/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h
index dbb3395192..9cf8a10c76 100644
--- a/fs/btrfs/compat.h
+++ b/fs/btrfs/compat.h
@@ -18,6 +18,7 @@
/* No <linux/limits.h> so have to define it here */
#define XATTR_NAME_MAX 255
+#define PATH_MAX 4096
/*
* Macros to generate set/get funcs for the struct fields