Message ID | 20210329053829.1851318-7-hch@lst.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [01/20] xfs: split xfs_imap_to_bp | expand |
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index 54d483ea34c8b7..fae6392f7c5650 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -63,8 +63,9 @@ xfs_inode_alloc( memset(&ip->i_df, 0, sizeof(ip->i_df)); ip->i_flags = 0; ip->i_delayed_blks = 0; - memset(&ip->i_d, 0, sizeof(ip->i_d)); ip->i_d.di_flags2 = mp->m_ino_geo.new_diflags2; + ip->i_d.di_nblocks = 0; + ip->i_d.di_forkoff = 0; ip->i_sick = 0; ip->i_checked = 0; INIT_WORK(&ip->i_ioend_work, xfs_end_io);