From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Monakhov Subject: [PATCH 3/3] ext4: symlink must be handled via filesystem specific operation Date: Fri, 26 Mar 2010 19:29:56 +0300 Message-ID: <1269620996-11400-3-git-send-email-dmonakhov@openvz.org> References: <1269620996-11400-1-git-send-email-dmonakhov@openvz.org> <1269620996-11400-2-git-send-email-dmonakhov@openvz.org> Cc: tytso@mit.edu, jack@suse.cz, Dmitry Monakhov To: linux-ext4@vger.kernel.org Return-path: Received: from mail-bw0-f209.google.com ([209.85.218.209]:45099 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555Ab0CZQaN (ORCPT ); Fri, 26 Mar 2010 12:30:13 -0400 Received: by mail-bw0-f209.google.com with SMTP id 1so1954865bwz.21 for ; Fri, 26 Mar 2010 09:30:12 -0700 (PDT) In-Reply-To: <1269620996-11400-2-git-send-email-dmonakhov@openvz.org> Sender: linux-ext4-owner@vger.kernel.org List-ID: generic setattr implementation is no longer responsible for quota transfer so synlinks must be handled via ext4_setattr. --- fs/ext4/symlink.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ext4/symlink.c b/fs/ext4/symlink.c index 00740cb..ed9354a 100644 --- a/fs/ext4/symlink.c +++ b/fs/ext4/symlink.c @@ -34,6 +34,7 @@ const struct inode_operations ext4_symlink_inode_operations = { .readlink = generic_readlink, .follow_link = page_follow_link_light, .put_link = page_put_link, + .setattr = ext4_setattr, #ifdef CONFIG_EXT4_FS_XATTR .setxattr = generic_setxattr, .getxattr = generic_getxattr, @@ -45,6 +46,7 @@ const struct inode_operations ext4_symlink_inode_operations = { const struct inode_operations ext4_fast_symlink_inode_operations = { .readlink = generic_readlink, .follow_link = ext4_follow_link, + .setattr = ext4_setattr, #ifdef CONFIG_EXT4_FS_XATTR .setxattr = generic_setxattr, .getxattr = generic_getxattr, -- 1.6.6.1