Skip to content

Commit 774f03f

Browse files
Dmitry Monakhovjankara
authored andcommitted
ext3: symlink must be handled via filesystem specific operation
generic setattr implementation is no longer responsible for quota transfer so synlinks must be handled via ext3_setattr. Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent fc7683a commit 774f03f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ext3/symlink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const struct inode_operations ext3_symlink_inode_operations = {
3434
.readlink = generic_readlink,
3535
.follow_link = page_follow_link_light,
3636
.put_link = page_put_link,
37+
.setattr = ext3_setattr,
3738
#ifdef CONFIG_EXT3_FS_XATTR
3839
.setxattr = generic_setxattr,
3940
.getxattr = generic_getxattr,
@@ -45,6 +46,7 @@ const struct inode_operations ext3_symlink_inode_operations = {
4546
const struct inode_operations ext3_fast_symlink_inode_operations = {
4647
.readlink = generic_readlink,
4748
.follow_link = ext3_follow_link,
49+
.setattr = ext3_setattr,
4850
#ifdef CONFIG_EXT3_FS_XATTR
4951
.setxattr = generic_setxattr,
5052
.getxattr = generic_getxattr,

0 commit comments

Comments
 (0)