diff options
author | yangerkun <yangerkun@huawei.com> | 2019-02-17 20:07:02 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-02-18 09:14:43 -0500 |
commit | 93bc420ed41df63a18ae794101f7cbf45226a6ef (patch) | |
tree | 861e65e4751600ab8393460e6eb3c26412947b06 /fs/ext2/symlink.c | |
parent | 4f5edd82eb375f0e949192ac5a0b42858356e05d (diff) |
ext2: support statx syscall
Since statx, every filesystem should fill the attributes/attributes_mask
in routine getattr. But the generic_fillattr has not fill that, so add
ext2_getattr to do this. This can fix generic/424 while testing ext2.
Reviewed-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/symlink.c')
-rw-r--r-- | fs/ext2/symlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/symlink.c b/fs/ext2/symlink.c index d5589ddcc281..00cdb8679486 100644 --- a/fs/ext2/symlink.c +++ b/fs/ext2/symlink.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | const struct inode_operations ext2_symlink_inode_operations = { | 24 | const struct inode_operations ext2_symlink_inode_operations = { |
25 | .get_link = page_get_link, | 25 | .get_link = page_get_link, |
26 | .getattr = ext2_getattr, | ||
26 | .setattr = ext2_setattr, | 27 | .setattr = ext2_setattr, |
27 | #ifdef CONFIG_EXT2_FS_XATTR | 28 | #ifdef CONFIG_EXT2_FS_XATTR |
28 | .listxattr = ext2_listxattr, | 29 | .listxattr = ext2_listxattr, |
@@ -31,6 +32,7 @@ const struct inode_operations ext2_symlink_inode_operations = { | |||
31 | 32 | ||
32 | const struct inode_operations ext2_fast_symlink_inode_operations = { | 33 | const struct inode_operations ext2_fast_symlink_inode_operations = { |
33 | .get_link = simple_get_link, | 34 | .get_link = simple_get_link, |
35 | .getattr = ext2_getattr, | ||
34 | .setattr = ext2_setattr, | 36 | .setattr = ext2_setattr, |
35 | #ifdef CONFIG_EXT2_FS_XATTR | 37 | #ifdef CONFIG_EXT2_FS_XATTR |
36 | .listxattr = ext2_listxattr, | 38 | .listxattr = ext2_listxattr, |