diff options
Diffstat (limited to 'fs/sysfs')
-rw-r--r-- | fs/sysfs/inode.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 000bd9865004..86fb230de432 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -104,14 +104,11 @@ int sysfs_setattr(struct dentry * dentry, struct iattr * iattr) | |||
104 | if (ia_valid & ATTR_GID) | 104 | if (ia_valid & ATTR_GID) |
105 | iattrs->ia_gid = iattr->ia_gid; | 105 | iattrs->ia_gid = iattr->ia_gid; |
106 | if (ia_valid & ATTR_ATIME) | 106 | if (ia_valid & ATTR_ATIME) |
107 | iattrs->ia_atime = timespec_trunc(iattr->ia_atime, | 107 | iattrs->ia_atime = iattr->ia_atime; |
108 | inode->i_sb->s_time_gran); | ||
109 | if (ia_valid & ATTR_MTIME) | 108 | if (ia_valid & ATTR_MTIME) |
110 | iattrs->ia_mtime = timespec_trunc(iattr->ia_mtime, | 109 | iattrs->ia_mtime = iattr->ia_mtime; |
111 | inode->i_sb->s_time_gran); | ||
112 | if (ia_valid & ATTR_CTIME) | 110 | if (ia_valid & ATTR_CTIME) |
113 | iattrs->ia_ctime = timespec_trunc(iattr->ia_ctime, | 111 | iattrs->ia_ctime = iattr->ia_ctime; |
114 | inode->i_sb->s_time_gran); | ||
115 | if (ia_valid & ATTR_MODE) { | 112 | if (ia_valid & ATTR_MODE) { |
116 | umode_t mode = iattr->ia_mode; | 113 | umode_t mode = iattr->ia_mode; |
117 | 114 | ||