diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 16:49:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 17:28:58 -0400 |
commit | 3a355cc61d41bc31cc23a57247df63dba80a6018 (patch) | |
tree | cf39d0b861fa8a33b748a95f3c86bbb33d9c2dac /fs/reiserfs | |
parent | 77e465867080c2d1e0c410e96dcdcd51e8584a6f (diff) |
reiserfs: xattr_create is unused with xattrs disabled
This patch ifdefs xattr_create when xattrs aren't enabled.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/xattr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
57 | /* Helpers for inode ops. We do this so that we don't have all the VFS | 57 | /* Helpers for inode ops. We do this so that we don't have all the VFS |
58 | * overhead and also for proper i_mutex annotation. | 58 | * overhead and also for proper i_mutex annotation. |
59 | * dir->i_mutex must be held for all of them. */ | 59 | * dir->i_mutex must be held for all of them. */ |
60 | #ifdef CONFIG_REISERFS_FS_XATTR | ||
60 | static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) | 61 | static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) |
61 | { | 62 | { |
62 | BUG_ON(!mutex_is_locked(&dir->i_mutex)); | 63 | BUG_ON(!mutex_is_locked(&dir->i_mutex)); |
63 | vfs_dq_init(dir); | 64 | vfs_dq_init(dir); |
64 | return dir->i_op->create(dir, dentry, mode, NULL); | 65 | return dir->i_op->create(dir, dentry, mode, NULL); |
65 | } | 66 | } |
67 | #endif | ||
66 | 68 | ||
67 | static int xattr_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 69 | static int xattr_mkdir(struct inode *dir, struct dentry *dentry, int mode) |
68 | { | 70 | { |