diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-02-20 23:28:58 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-25 01:07:51 +0300 |
commit | 69a23de2f3de046f1017489eb9e6de4e8165e4f0 (patch) | |
tree | a4c001c26c8862dba4fd7685a38d87d172ed9b87 /fs/orangefs/orangefs-kernel.h | |
parent | 6ceaf7818f266d917ed61338885ddd2b77008f06 (diff) | |
download | linux-69a23de2f3de046f1017489eb9e6de4e8165e4f0.tar.xz |
orangefs: clean up fill_default_sys_attrs
Size and type are read-only and not in the mask. The times were left
unset despite being in the mask.
We zero-fill the times since the server will fill them in and we will
get the correct time when we fill the inode with getattr.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 91cbd53f782c..785c9a4ef834 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -645,9 +645,10 @@ do { \ do { \ sys_attr.owner = from_kuid(current_user_ns(), current_fsuid()); \ sys_attr.group = from_kgid(current_user_ns(), current_fsgid()); \ - sys_attr.size = 0; \ sys_attr.perms = ORANGEFS_util_translate_mode(mode); \ - sys_attr.objtype = type; \ + sys_attr.mtime = 0; \ + sys_attr.atime = 0; \ + sys_attr.ctime = 0; \ sys_attr.mask = ORANGEFS_ATTR_SYS_ALL_SETABLE; \ } while (0) |