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/ecryptfs | |
| 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/ecryptfs')
| -rw-r--r-- | fs/ecryptfs/inode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index ddccec3124d7..cf390dceddd2 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
| @@ -577,7 +577,8 @@ out: | |||
| 577 | 577 | ||
| 578 | static int | 578 | static int |
| 579 | ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, | 579 | ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, |
| 580 | struct inode *new_dir, struct dentry *new_dentry) | 580 | struct inode *new_dir, struct dentry *new_dentry, |
| 581 | unsigned int flags) | ||
| 581 | { | 582 | { |
| 582 | int rc; | 583 | int rc; |
| 583 | struct dentry *lower_old_dentry; | 584 | struct dentry *lower_old_dentry; |
| @@ -587,6 +588,9 @@ ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
| 587 | struct dentry *trap = NULL; | 588 | struct dentry *trap = NULL; |
| 588 | struct inode *target_inode; | 589 | struct inode *target_inode; |
| 589 | 590 | ||
| 591 | if (flags) | ||
| 592 | return -EINVAL; | ||
| 593 | |||
| 590 | lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); | 594 | lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); |
| 591 | lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); | 595 | lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); |
| 592 | dget(lower_old_dentry); | 596 | dget(lower_old_dentry); |
