Commit b2d627ee authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix typo in #ifdef for ext2 xattr support

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch corrects a typo in an ifdef that enables xattr operations for
special files in the ext2 code; otherwise, extended attributes cannot be
obtained or set on such inodes.
parent 081bb1e6
...@@ -143,7 +143,7 @@ static int ext2_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_ ...@@ -143,7 +143,7 @@ static int ext2_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_
int err = PTR_ERR(inode); int err = PTR_ERR(inode);
if (!IS_ERR(inode)) { if (!IS_ERR(inode)) {
init_special_inode(inode, inode->i_mode, rdev); init_special_inode(inode, inode->i_mode, rdev);
#ifdef CONFIG_EXT2_FS_EXT_ATTR #ifdef CONFIG_EXT2_FS_XATTR
inode->i_op = &ext2_special_inode_operations; inode->i_op = &ext2_special_inode_operations;
#endif #endif
mark_inode_dirty(inode); mark_inode_dirty(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment