From: Jeff Mahoney Date: Mon, 30 Mar 2009 20:49:58 +0000 (-0400) Subject: reiserfs: xattr_create is unused with xattrs disabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a355cc61d41bc31cc23a57247df63dba80a6018;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git reiserfs: xattr_create is unused with xattrs disabled This patch ifdefs xattr_create when xattrs aren't enabled. Signed-off-by: Jeff Mahoney Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index e52743e77000..f83f52bae390 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c @@ -57,12 +57,14 @@ /* Helpers for inode ops. We do this so that we don't have all the VFS * overhead and also for proper i_mutex annotation. * dir->i_mutex must be held for all of them. */ +#ifdef CONFIG_REISERFS_FS_XATTR static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) { BUG_ON(!mutex_is_locked(&dir->i_mutex)); vfs_dq_init(dir); return dir->i_op->create(dir, dentry, mode, NULL); } +#endif static int xattr_mkdir(struct inode *dir, struct dentry *dentry, int mode) {