diff options
author | yangerkun <yangerkun@huawei.com> | 2019-02-18 09:07:02 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-02-18 15:14:43 +0100 |
commit | 93bc420ed41df63a18ae794101f7cbf45226a6ef (patch) | |
tree | 861e65e4751600ab8393460e6eb3c26412947b06 /fs/ext2/ext2.h | |
parent | 4f5edd82eb375f0e949192ac5a0b42858356e05d (diff) | |
download | linux-stable-93bc420ed41df63a18ae794101f7cbf45226a6ef.tar.gz linux-stable-93bc420ed41df63a18ae794101f7cbf45226a6ef.tar.bz2 linux-stable-93bc420ed41df63a18ae794101f7cbf45226a6ef.zip |
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/ext2.h')
-rw-r--r-- | fs/ext2/ext2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index e770cd100a6a..ae0cd9e81e48 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h @@ -774,6 +774,7 @@ extern int ext2_write_inode (struct inode *, struct writeback_control *); extern void ext2_evict_inode(struct inode *); extern int ext2_get_block(struct inode *, sector_t, struct buffer_head *, int); extern int ext2_setattr (struct dentry *, struct iattr *); +extern int ext2_getattr (const struct path *, struct kstat *, u32, unsigned int); extern void ext2_set_inode_flags(struct inode *inode); extern int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len); |