From b33549174a53e257484914311776d4d2a4bb9ac2 Mon Sep 17 00:00:00 2001 From: "Eric W. Biederman" Date: Sat, 7 Nov 2009 23:27:02 -0800 Subject: [PATCH] --- yaml --- r: 175020 b: refs/heads/master c: 4c6974f51a981d14f13e36049d6307d3bcda550e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/sysfs/file.c | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index b46fd92ef9c1..2ed13742a7e1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8f077c8831528e2ec1ea6c8ba090e405fdcd0b7 +refs/heads/master: 4c6974f51a981d14f13e36049d6307d3bcda550e diff --git a/trunk/fs/sysfs/file.c b/trunk/fs/sysfs/file.c index f5ea4680f15f..faa1a803caa9 100644 --- a/trunk/fs/sysfs/file.c +++ b/trunk/fs/sysfs/file.c @@ -604,17 +604,9 @@ int sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode) mutex_lock(&inode->i_mutex); newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); - newattrs.ia_valid = ATTR_MODE | ATTR_CTIME; - newattrs.ia_ctime = current_fs_time(inode->i_sb); + newattrs.ia_valid = ATTR_MODE; rc = sysfs_setattr(victim, &newattrs); - if (rc == 0) { - fsnotify_change(victim, newattrs.ia_valid); - mutex_lock(&sysfs_mutex); - victim_sd->s_mode = newattrs.ia_mode; - mutex_unlock(&sysfs_mutex); - } - mutex_unlock(&inode->i_mutex); out: dput(victim);