]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ext4: always set i_op in ext4_mknod()
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Thu, 27 Sep 2012 01:24:57 +0000 (21:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:24 +0000 (05:50 +0900)
commit 6a08f447facb4f9e29fcc30fb68060bb5a0d21c2 upstream.

ext4_special_inode_operations have their own ifdef CONFIG_EXT4_FS_XATTR
to mask those methods. And ext4_iget also always sets it, so there is
an inconsistency.

Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/namei.c

index 2a42cc04466f6858f55fea7e4a8beb2f1232319f..d13873d7cfc1c588abbf6b37fdf8f4cdcc7da873 100644 (file)
@@ -2149,9 +2149,7 @@ retry:
        err = PTR_ERR(inode);
        if (!IS_ERR(inode)) {
                init_special_inode(inode, inode->i_mode, rdev);
-#ifdef CONFIG_EXT4_FS_XATTR
                inode->i_op = &ext4_special_inode_operations;
-#endif
                err = ext4_add_nondir(handle, dentry, inode);
        }
        ext4_journal_stop(handle);