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/devpts | |
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/devpts')
-rw-r--r-- | fs/devpts/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 442d1a7e671b..108df2e3602c 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -300,7 +300,7 @@ static int mknod_ptmx(struct super_block *sb) | |||
300 | } | 300 | } |
301 | 301 | ||
302 | inode->i_ino = 2; | 302 | inode->i_ino = 2; |
303 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 303 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
304 | 304 | ||
305 | mode = S_IFCHR|opts->ptmxmode; | 305 | mode = S_IFCHR|opts->ptmxmode; |
306 | init_special_inode(inode, mode, MKDEV(TTYAUX_MAJOR, 2)); | 306 | init_special_inode(inode, mode, MKDEV(TTYAUX_MAJOR, 2)); |
@@ -412,7 +412,7 @@ devpts_fill_super(struct super_block *s, void *data, int silent) | |||
412 | if (!inode) | 412 | if (!inode) |
413 | goto fail; | 413 | goto fail; |
414 | inode->i_ino = 1; | 414 | inode->i_ino = 1; |
415 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 415 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
416 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; | 416 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; |
417 | inode->i_op = &simple_dir_inode_operations; | 417 | inode->i_op = &simple_dir_inode_operations; |
418 | inode->i_fop = &simple_dir_operations; | 418 | inode->i_fop = &simple_dir_operations; |
@@ -540,7 +540,7 @@ struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) | |||
540 | inode->i_ino = index + 3; | 540 | inode->i_ino = index + 3; |
541 | inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); | 541 | inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); |
542 | inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); | 542 | inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); |
543 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 543 | inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); |
544 | init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); | 544 | init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); |
545 | 545 | ||
546 | sprintf(s, "%d", index); | 546 | sprintf(s, "%d", index); |