Skip to content

Commit

Permalink
sysfs: Push file_update_time() into bin_page_mkwrite()
Browse files Browse the repository at this point in the history
CC: Greg Kroah-Hartman <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
jankara authored and Al Viro committed Jul 30, 2012
1 parent a63e9b2 commit 14ae417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/sysfs/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14ae417

Please sign in to comment.