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>
diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h
index dbb3395..9cf8a10 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