diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 05:28:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 05:28:42 -0400 |
commit | 77c688ac87183537ed0fb84ec2cb8fa8ec97c458 (patch) | |
tree | d18e117e05c0d71463823536165ddd9ad75b6bc5 /fs/proc | |
parent | 5e40d331bd72447197f26525f21711c4a265b6a6 (diff) | |
parent | a457606a6f81cfddfc9da1ef2a8bf2c65a8eb35e (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"The big thing in this pile is Eric's unmount-on-rmdir series; we
finally have everything we need for that. The final piece of prereqs
is delayed mntput() - now filesystem shutdown always happens on
shallow stack.
Other than that, we have several new primitives for iov_iter (Matt
Wilcox, culled from his XIP-related series) pushing the conversion to
->read_iter()/ ->write_iter() a bit more, a bunch of fs/dcache.c
cleanups and fixes (including the external name refcounting, which
gives consistent behaviour of d_move() wrt procfs symlinks for long
and short names alike) and assorted cleanups and fixes all over the
place.
This is just the first pile; there's a lot of stuff from various
people that ought to go in this window. Starting with
unionmount/overlayfs mess... ;-/"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (60 commits)
fs/file_table.c: Update alloc_file() comment
vfs: Deduplicate code shared by xattr system calls operating on paths
reiserfs: remove pointless forward declaration of struct nameidata
don't need that forward declaration of struct nameidata in dcache.h anymore
take dname_external() into fs/dcache.c
let path_init() failures treated the same way as subsequent link_path_walk()
fix misuses of f_count() in ppp and netlink
ncpfs: use list_for_each_entry() for d_subdirs walk
vfs: move getname() from callers to do_mount()
gfs2_atomic_open(): skip lookups on hashed dentry
[infiniband] remove pointless assignments
gadgetfs: saner API for gadgetfs_create_file()
f_fs: saner API for ffs_sb_create_file()
jfs: don't hash direct inode
[s390] remove pointless assignment of ->f_op in vmlogrdr ->open()
ecryptfs: ->f_op is never NULL
android: ->f_op is never NULL
nouveau: __iomem misannotations
missing annotation in fs/file.c
fs: namespace: suppress 'may be used uninitialized' warnings
...
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 10 | ||||
-rw-r--r-- | fs/proc/fd.c | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 950100e326a1..772efa45a452 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1565,7 +1565,6 @@ int pid_revalidate(struct dentry *dentry, unsigned int flags) | |||
1565 | put_task_struct(task); | 1565 | put_task_struct(task); |
1566 | return 1; | 1566 | return 1; |
1567 | } | 1567 | } |
1568 | d_drop(dentry); | ||
1569 | return 0; | 1568 | return 0; |
1570 | } | 1569 | } |
1571 | 1570 | ||
@@ -1702,9 +1701,6 @@ out: | |||
1702 | put_task_struct(task); | 1701 | put_task_struct(task); |
1703 | 1702 | ||
1704 | out_notask: | 1703 | out_notask: |
1705 | if (status <= 0) | ||
1706 | d_drop(dentry); | ||
1707 | |||
1708 | return status; | 1704 | return status; |
1709 | } | 1705 | } |
1710 | 1706 | ||
@@ -2618,8 +2614,7 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) | |||
2618 | /* no ->d_hash() rejects on procfs */ | 2614 | /* no ->d_hash() rejects on procfs */ |
2619 | dentry = d_hash_and_lookup(mnt->mnt_root, &name); | 2615 | dentry = d_hash_and_lookup(mnt->mnt_root, &name); |
2620 | if (dentry) { | 2616 | if (dentry) { |
2621 | shrink_dcache_parent(dentry); | 2617 | d_invalidate(dentry); |
2622 | d_drop(dentry); | ||
2623 | dput(dentry); | 2618 | dput(dentry); |
2624 | } | 2619 | } |
2625 | 2620 | ||
@@ -2639,8 +2634,7 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) | |||
2639 | name.len = snprintf(buf, sizeof(buf), "%d", pid); | 2634 | name.len = snprintf(buf, sizeof(buf), "%d", pid); |
2640 | dentry = d_hash_and_lookup(dir, &name); | 2635 | dentry = d_hash_and_lookup(dir, &name); |
2641 | if (dentry) { | 2636 | if (dentry) { |
2642 | shrink_dcache_parent(dentry); | 2637 | d_invalidate(dentry); |
2643 | d_drop(dentry); | ||
2644 | dput(dentry); | 2638 | dput(dentry); |
2645 | } | 2639 | } |
2646 | 2640 | ||
diff --git a/fs/proc/fd.c b/fs/proc/fd.c index 955bb55fab8c..e11d7c590bb0 100644 --- a/fs/proc/fd.c +++ b/fs/proc/fd.c | |||
@@ -129,8 +129,6 @@ static int tid_fd_revalidate(struct dentry *dentry, unsigned int flags) | |||
129 | } | 129 | } |
130 | put_task_struct(task); | 130 | put_task_struct(task); |
131 | } | 131 | } |
132 | |||
133 | d_drop(dentry); | ||
134 | return 0; | 132 | return 0; |
135 | } | 133 | } |
136 | 134 | ||