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/fuse | |
| 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/fuse')
| -rw-r--r-- | fs/fuse/control.c | 2 | ||||
| -rw-r--r-- | fs/fuse/dir.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/fuse/control.c b/fs/fuse/control.c index f863ac6647ac..6e22748b0704 100644 --- a/fs/fuse/control.c +++ b/fs/fuse/control.c | |||
| @@ -220,7 +220,7 @@ static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, | |||
| 220 | inode->i_mode = mode; | 220 | inode->i_mode = mode; |
| 221 | inode->i_uid = fc->user_id; | 221 | inode->i_uid = fc->user_id; |
| 222 | inode->i_gid = fc->group_id; | 222 | inode->i_gid = fc->group_id; |
| 223 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 223 | inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); |
| 224 | /* setting ->i_op to NULL is not allowed */ | 224 | /* setting ->i_op to NULL is not allowed */ |
| 225 | if (iop) | 225 | if (iop) |
| 226 | inode->i_op = iop; | 226 | inode->i_op = iop; |
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 572d12410c7c..6a4d0e5418a1 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
| @@ -647,7 +647,7 @@ static int fuse_symlink(struct inode *dir, struct dentry *entry, | |||
| 647 | void fuse_update_ctime(struct inode *inode) | 647 | void fuse_update_ctime(struct inode *inode) |
| 648 | { | 648 | { |
| 649 | if (!IS_NOCMTIME(inode)) { | 649 | if (!IS_NOCMTIME(inode)) { |
| 650 | inode->i_ctime = current_fs_time(inode->i_sb); | 650 | inode->i_ctime = current_time(inode); |
| 651 | mark_inode_dirty_sync(inode); | 651 | mark_inode_dirty_sync(inode); |
| 652 | } | 652 | } |
| 653 | } | 653 | } |
| @@ -1793,7 +1793,7 @@ static const struct inode_operations fuse_dir_inode_operations = { | |||
| 1793 | .symlink = fuse_symlink, | 1793 | .symlink = fuse_symlink, |
| 1794 | .unlink = fuse_unlink, | 1794 | .unlink = fuse_unlink, |
| 1795 | .rmdir = fuse_rmdir, | 1795 | .rmdir = fuse_rmdir, |
| 1796 | .rename2 = fuse_rename2, | 1796 | .rename = fuse_rename2, |
| 1797 | .link = fuse_link, | 1797 | .link = fuse_link, |
| 1798 | .setattr = fuse_setattr, | 1798 | .setattr = fuse_setattr, |
| 1799 | .create = fuse_create, | 1799 | .create = fuse_create, |
