summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/bin.c
diff options
context:
space:
mode:
authorJan Kara2012-06-12 16:20:27 +0200
committerAl Viro2012-07-30 23:02:47 +0200
commit14ae417c6faf28b6e8ec60cc2aa0eaa19453a41c (patch)
treec8b0e9ddac08473125b9d3b02149863cba06ddcc /fs/sysfs/bin.c
parentgfs2: Push file_update_time() into gfs2_page_mkwrite() (diff)
downloadkernel-qcow2-linux-14ae417c6faf28b6e8ec60cc2aa0eaa19453a41c.tar.gz
kernel-qcow2-linux-14ae417c6faf28b6e8ec60cc2aa0eaa19453a41c.tar.xz
kernel-qcow2-linux-14ae417c6faf28b6e8ec60cc2aa0eaa19453a41c.zip
sysfs: Push file_update_time() into bin_page_mkwrite()
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysfs/bin.c')
-rw-r--r--fs/sysfs/bin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/sysfs/bin.c b/fs/sysfs/bin.c
index a4759833d62d..614b2b544880 100644
--- a/fs/sysfs/bin.c
+++ b/fs/sysfs/bin.c
@@ -228,6 +228,8 @@ static int bin_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
ret = 0;
if (bb->vm_ops->page_mkwrite)
ret = bb->vm_ops->page_mkwrite(vma, vmf);
+ else
+ file_update_time(file);
sysfs_put_active(attr_sd);
return ret;