fs/hfsplus: move xattr_name allocation in hfsplus_setxattr()
[firefly-linux-kernel-4.4.55.git] / fs / hfsplus / xattr.h
index 570d406a65e3bdb7a7241c3777052967a2c1b886..f9b0955b3d281ee93deedf398905bf1c1c64469d 100644 (file)
@@ -21,11 +21,9 @@ extern const struct xattr_handler *hfsplus_xattr_handlers[];
 int __hfsplus_setxattr(struct inode *inode, const char *name,
                        const void *value, size_t size, int flags);
 
-static inline int hfsplus_setxattr(struct dentry *dentry, const char *name,
-                       const void *value, size_t size, int flags)
-{
-       return __hfsplus_setxattr(dentry->d_inode, name, value, size, flags);
-}
+int hfsplus_setxattr(struct dentry *dentry, const char *name,
+                                  const void *value, size_t size, int flags,
+                                  const char *prefix, size_t prefixlen);
 
 ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
                           void *value, size_t size);