diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 23:16:43 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 23:16:43 -0400 |
| commit | 101105b1717f536ca741f940033996302d4ef191 (patch) | |
| tree | 12ab41ae1b1b66105e9fa2ea763356d2be7e8b34 /fs/proc | |
| parent | 35ff96dfd3c9aaa921b3e8dcac76b7697f2dcec0 (diff) | |
| parent | 3873691e5ab34fa26948643d038a2b98c4437298 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs updates from Al Viro:
">rename2() work from Miklos + current_time() from Deepa"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
fs: Replace current_fs_time() with current_time()
fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
fs: Replace CURRENT_TIME with current_time() for inode timestamps
fs: proc: Delete inode time initializations in proc_alloc_inode()
vfs: Add current_time() api
vfs: add note about i_op->rename changes to porting
fs: rename "rename2" i_op to "rename"
vfs: remove unused i_op->rename
fs: make remaining filesystems use .rename2
libfs: support RENAME_NOREPLACE in simple_rename()
fs: support RENAME_NOREPLACE for local filesystems
ncpfs: fix unused variable warning
Diffstat (limited to 'fs/proc')
| -rw-r--r-- | fs/proc/base.c | 2 | ||||
| -rw-r--r-- | fs/proc/inode.c | 3 | ||||
| -rw-r--r-- | fs/proc/proc_sysctl.c | 2 | ||||
| -rw-r--r-- | fs/proc/self.c | 2 | ||||
| -rw-r--r-- | fs/proc/thread_self.c | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 29fd7ef97be9..c2964d890c9a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
| @@ -1671,7 +1671,7 @@ struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *t | |||
| 1671 | /* Common stuff */ | 1671 | /* Common stuff */ |
| 1672 | ei = PROC_I(inode); | 1672 | ei = PROC_I(inode); |
| 1673 | inode->i_ino = get_next_ino(); | 1673 | inode->i_ino = get_next_ino(); |
| 1674 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 1674 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
| 1675 | inode->i_op = &proc_def_inode_operations; | 1675 | inode->i_op = &proc_def_inode_operations; |
| 1676 | 1676 | ||
| 1677 | /* | 1677 | /* |
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index c1b72388e571..e69ebe648a34 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
| @@ -68,7 +68,6 @@ static struct inode *proc_alloc_inode(struct super_block *sb) | |||
| 68 | ei->sysctl_entry = NULL; | 68 | ei->sysctl_entry = NULL; |
| 69 | ei->ns_ops = NULL; | 69 | ei->ns_ops = NULL; |
| 70 | inode = &ei->vfs_inode; | 70 | inode = &ei->vfs_inode; |
| 71 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | ||
| 72 | return inode; | 71 | return inode; |
| 73 | } | 72 | } |
| 74 | 73 | ||
| @@ -421,7 +420,7 @@ struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de) | |||
| 421 | 420 | ||
| 422 | if (inode) { | 421 | if (inode) { |
| 423 | inode->i_ino = de->low_ino; | 422 | inode->i_ino = de->low_ino; |
| 424 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 423 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
| 425 | PROC_I(inode)->pde = de; | 424 | PROC_I(inode)->pde = de; |
| 426 | 425 | ||
| 427 | if (is_empty_pde(de)) { | 426 | if (is_empty_pde(de)) { |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index f908b78bce55..55313d994895 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
| @@ -445,7 +445,7 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, | |||
| 445 | ei->sysctl = head; | 445 | ei->sysctl = head; |
| 446 | ei->sysctl_entry = table; | 446 | ei->sysctl_entry = table; |
| 447 | 447 | ||
| 448 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 448 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
| 449 | inode->i_mode = table->mode; | 449 | inode->i_mode = table->mode; |
| 450 | if (!S_ISDIR(table->mode)) { | 450 | if (!S_ISDIR(table->mode)) { |
| 451 | inode->i_mode |= S_IFREG; | 451 | inode->i_mode |= S_IFREG; |
diff --git a/fs/proc/self.c b/fs/proc/self.c index b6a8d3529fea..40245954c450 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c | |||
| @@ -56,7 +56,7 @@ int proc_setup_self(struct super_block *s) | |||
| 56 | struct inode *inode = new_inode_pseudo(s); | 56 | struct inode *inode = new_inode_pseudo(s); |
| 57 | if (inode) { | 57 | if (inode) { |
| 58 | inode->i_ino = self_inum; | 58 | inode->i_ino = self_inum; |
| 59 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 59 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
| 60 | inode->i_mode = S_IFLNK | S_IRWXUGO; | 60 | inode->i_mode = S_IFLNK | S_IRWXUGO; |
| 61 | inode->i_uid = GLOBAL_ROOT_UID; | 61 | inode->i_uid = GLOBAL_ROOT_UID; |
| 62 | inode->i_gid = GLOBAL_ROOT_GID; | 62 | inode->i_gid = GLOBAL_ROOT_GID; |
diff --git a/fs/proc/thread_self.c b/fs/proc/thread_self.c index e58a31e8fb2a..595b90a9766c 100644 --- a/fs/proc/thread_self.c +++ b/fs/proc/thread_self.c | |||
| @@ -58,7 +58,7 @@ int proc_setup_thread_self(struct super_block *s) | |||
| 58 | struct inode *inode = new_inode_pseudo(s); | 58 | struct inode *inode = new_inode_pseudo(s); |
| 59 | if (inode) { | 59 | if (inode) { |
| 60 | inode->i_ino = thread_self_inum; | 60 | inode->i_ino = thread_self_inum; |
| 61 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 61 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
| 62 | inode->i_mode = S_IFLNK | S_IRWXUGO; | 62 | inode->i_mode = S_IFLNK | S_IRWXUGO; |
| 63 | inode->i_uid = GLOBAL_ROOT_UID; | 63 | inode->i_uid = GLOBAL_ROOT_UID; |
| 64 | inode->i_gid = GLOBAL_ROOT_GID; | 64 | inode->i_gid = GLOBAL_ROOT_GID; |
