diff options
author | davem <davem> | 2002-01-25 02:53:03 +0000 |
---|---|---|
committer | davem <davem> | 2002-01-25 02:53:03 +0000 |
commit | f0bb895d24589421cd445f1bdeae8a490d1696a2 (patch) | |
tree | 02b14281dcc59ca7d99cd9a3e3a2a25f341eb1df | |
parent | b93e4854113a7fc68edf734e9328707eeea4be58 (diff) | |
download | netdev-vger-cvs-f0bb895d24589421cd445f1bdeae8a490d1696a2.tar.gz |
Cure missing initialize of i_frag_size and
i_dir_acl.
-rw-r--r-- | fs/ext2/ialloc.c | 1 | ||||
-rw-r--r-- | fs/ext2/inode.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index dc40b916d..7f0592a52 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -392,6 +392,7 @@ repeat: ei->i_flags &= ~(EXT2_IMMUTABLE_FL|EXT2_APPEND_FL); ei->i_faddr = 0; ei->i_frag_no = 0; + ei->i_frag_size = 0; ei->i_osync = 0; ei->i_file_acl = 0; ei->i_dir_acl = 0; diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index a0b631578..c355f6cbf 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -963,6 +963,7 @@ void ext2_read_inode (struct inode * inode) ei->i_frag_size = raw_inode->i_fsize; ei->i_osync = 0; ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); + ei->i_dir_acl = 0; if (S_ISREG(inode->i_mode)) inode->i_size |= ((__u64)le32_to_cpu(raw_inode->i_size_high)) << 32; else |