Ticket #40: noatime.patch
| File noatime.patch, 2.3 kB (added by carns, 3 months ago) |
|---|
-
src/kernel/linux-2.6/inode.c
old new 244 244 int ret = -ENOENT; 245 245 struct inode *inode = dentry->d_inode; 246 246 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 247 254 gossip_debug(GOSSIP_INODE_DEBUG, "pvfs2_getattr: called on %s\n", dentry->d_name.name); 248 255 249 256 /* -
src/kernel/linux-2.6/pvfs2-utils.c
old new 116 116 if (attrs->flags & PVFS_NOATIME_FL) { 117 117 inode->i_flags |= S_NOATIME; 118 118 } 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 119 124 else { 120 125 inode->i_flags &= ~S_NOATIME; 121 126 } 127 #endif 122 128 return; 123 129 } 124 130 -
src/kernel/linux-2.6/super.c
old new 1175 1175 new_op->downcall.resp.fs_mount.root_handle; 1176 1176 mount_sb_info.fs_id = new_op->downcall.resp.fs_mount.fs_id; 1177 1177 mount_sb_info.id = new_op->downcall.resp.fs_mount.id; 1178 1178 1179 1179 /* 1180 1180 the mount_sb_info structure looks odd, but it's used because 1181 1181 the private sb info isn't allocated until we call
