From: Li Zefan Date: Tue, 21 Feb 2012 09:04:28 +0000 (+0800) Subject: Btrfs: avoid setting ->d_op twice X-Git-Tag: v3.4-rc5~6^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848cce0d4102b5b4b26b0987b43e1919d462afe2;p=pandora-kernel.git Btrfs: avoid setting ->d_op twice Follow those instructions, and you'll trigger a warning in the beginning of d_set_d_op(): # mkfs.btrfs /dev/loop3 # mount /dev/loop3 /mnt # btrfs sub create /mnt/sub # btrfs sub snap /mnt /mnt/snap # touch /mnt/snap/sub touch: cannot touch `tmp': Permission denied __d_alloc() set d_op to sb->s_d_op (btrfs_dentry_operations), and then simple_lookup() reset it to simple_dentry_operations, which triggered the warning. Signed-off-by: Li Zefan --- Reading git-diff-tree failed