Skip to content

Commit fc7683a

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ext2/symlink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const struct inode_operations ext2_symlink_inode_operations = {
3232
.readlink = generic_readlink,
3333
.follow_link = page_follow_link_light,
3434
.put_link = page_put_link,
35+
.setattr = ext2_setattr,
3536
#ifdef CONFIG_EXT2_FS_XATTR
3637
.setxattr = generic_setxattr,
3738
.getxattr = generic_getxattr,
@@ -43,6 +44,7 @@ const struct inode_operations ext2_symlink_inode_operations = {
4344
const struct inode_operations ext2_fast_symlink_inode_operations = {
4445
.readlink = generic_readlink,
4546
.follow_link = ext2_follow_link,
47+
.setattr = ext2_setattr,
4648
#ifdef CONFIG_EXT2_FS_XATTR
4749
.setxattr = generic_setxattr,
4850
.getxattr = generic_getxattr,

0 commit comments

Comments
 (0)