Ticket #40: noatime.patch

File noatime.patch, 2.3 kB (added by carns, 3 months ago)

hacked noatime support patch

  • src/kernel/linux-2.6/inode.c

    old new  
    244244    int ret = -ENOENT; 
    245245    struct inode *inode = dentry->d_inode; 
    246246 
     247    /* TODO: temporary */ 
     248    if(mnt->mnt_flags && MNT_NOATIME) 
     249    { 
     250        inode->i_flags |= S_NOATIME; 
     251        inode->i_sb->s_flags |= S_NOATIME; 
     252    } 
     253 
    247254    gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2_getattr: called on %s\n", dentry->d_name.name); 
    248255 
    249256    /* 
  • src/kernel/linux-2.6/pvfs2-utils.c

    old new  
    116116    if (attrs->flags & PVFS_NOATIME_FL) { 
    117117        inode->i_flags |= S_NOATIME; 
    118118    } 
     119    /* do not allow lack of atime xattr to clear NOATIME attribute on file 
     120     * system that was mounted with noatime option 
     121     */ 
     122    /* TODO: check on this */ 
     123#if 0 
    119124    else { 
    120125        inode->i_flags &= ~S_NOATIME; 
    121126    } 
     127#endif 
    122128    return; 
    123129} 
    124130 
  • src/kernel/linux-2.6/super.c

    old new  
    11751175            new_op->downcall.resp.fs_mount.root_handle; 
    11761176        mount_sb_info.fs_id = new_op->downcall.resp.fs_mount.fs_id; 
    11771177        mount_sb_info.id = new_op->downcall.resp.fs_mount.id; 
    1178  
     1178             
    11791179        /* 
    11801180          the mount_sb_info structure looks odd, but it's used because 
    11811181          the private sb info isn't allocated until we call