X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fconfigfs%2Fsymlink.c;h=e5512e295cf2970b865d7ee398ed41d87634e067;hb=4136cabff33d6d73b8daf2f2612670cc0296f844;hp=50f5840521a93c0b91fda648a9f3fc9debc659d8;hpb=29552b1462799afbe02af035b243e97579d63350;p=linux-2.6 diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index 50f5840521..e5512e295c 100644 --- a/fs/configfs/symlink.c +++ b/fs/configfs/symlink.c @@ -162,8 +162,7 @@ int configfs_unlink(struct inode *dir, struct dentry *dentry) if (!(sd->s_type & CONFIGFS_ITEM_LINK)) goto out; - if (dentry->d_parent == configfs_sb->s_root) - BUG(); + BUG_ON(dentry->d_parent == configfs_sb->s_root); sl = sd->s_element; @@ -277,5 +276,6 @@ struct inode_operations configfs_symlink_inode_operations = { .follow_link = configfs_follow_link, .readlink = generic_readlink, .put_link = configfs_put_link, + .setattr = configfs_setattr, };