Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/fs/fat/inode.c

    r25370 r31869  
    12671267}
    12681268
     1269static void fat_dummy_inode_init(struct inode *inode)
     1270{
     1271        /* Initialize this dummy inode to work as no-op. */
     1272        MSDOS_I(inode)->mmu_private = 0;
     1273        MSDOS_I(inode)->i_start = 0;
     1274        MSDOS_I(inode)->i_logstart = 0;
     1275        MSDOS_I(inode)->i_attrs = 0;
     1276        MSDOS_I(inode)->i_pos = 0;
     1277}
     1278
    12691279static int fat_read_root(struct inode *inode)
    12701280{
     
    17121722        if (!fat_inode)
    17131723                goto out_fail;
    1714         MSDOS_I(fat_inode)->i_pos = 0;
     1724        fat_dummy_inode_init(fat_inode);
    17151725        sbi->fat_inode = fat_inode;
    17161726
     
    17181728        if (!fsinfo_inode)
    17191729                goto out_fail;
     1730        fat_dummy_inode_init(fsinfo_inode);
    17201731        fsinfo_inode->i_ino = MSDOS_FSINFO_INO;
    17211732        sbi->fsinfo_inode = fsinfo_inode;
Note: See TracChangeset for help on using the changeset viewer.