summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-29 18:35:12 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-29 18:35:12 -0400
commitaffda48410a5bbfd516def60bbc97f2683cd9f7b (patch)
treef54b2612ec4b6d8cf5bfbd4f5dbb300b2de7da75 /fs/dcache.c
parent77d5a6b7d9924e2ebb96c6e80bb9fc78615e41b5 (diff)
trim fsnotify hooks a bit
fsnotify_d_move()/__fsnotify_d_instantiate()/__fsnotify_update_dcache_flags() are identical to each other, regardless of the config. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index ad4a542e9bab..f9c63c108881 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1769,7 +1769,7 @@ static void __d_instantiate(struct dentry *dentry, struct inode *inode)
1769 raw_write_seqcount_begin(&dentry->d_seq); 1769 raw_write_seqcount_begin(&dentry->d_seq);
1770 __d_set_inode_and_type(dentry, inode, add_flags); 1770 __d_set_inode_and_type(dentry, inode, add_flags);
1771 raw_write_seqcount_end(&dentry->d_seq); 1771 raw_write_seqcount_end(&dentry->d_seq);
1772 __fsnotify_d_instantiate(dentry); 1772 fsnotify_update_flags(dentry);
1773 spin_unlock(&dentry->d_lock); 1773 spin_unlock(&dentry->d_lock);
1774} 1774}
1775 1775
@@ -2563,7 +2563,7 @@ static inline void __d_add(struct dentry *dentry, struct inode *inode)
2563 raw_write_seqcount_begin(&dentry->d_seq); 2563 raw_write_seqcount_begin(&dentry->d_seq);
2564 __d_set_inode_and_type(dentry, inode, add_flags); 2564 __d_set_inode_and_type(dentry, inode, add_flags);
2565 raw_write_seqcount_end(&dentry->d_seq); 2565 raw_write_seqcount_end(&dentry->d_seq);
2566 __fsnotify_d_instantiate(dentry); 2566 fsnotify_update_flags(dentry);
2567 } 2567 }
2568 _d_rehash(dentry); 2568 _d_rehash(dentry);
2569 if (dir) 2569 if (dir)
@@ -2853,8 +2853,8 @@ static void __d_move(struct dentry *dentry, struct dentry *target,
2853 list_move(&target->d_child, &target->d_parent->d_subdirs); 2853 list_move(&target->d_child, &target->d_parent->d_subdirs);
2854 list_move(&dentry->d_child, &dentry->d_parent->d_subdirs); 2854 list_move(&dentry->d_child, &dentry->d_parent->d_subdirs);
2855 if (exchange) 2855 if (exchange)
2856 fsnotify_d_move(target); 2856 fsnotify_update_flags(target);
2857 fsnotify_d_move(dentry); 2857 fsnotify_update_flags(dentry);
2858 } 2858 }
2859 2859
2860 write_seqcount_end(&target->d_seq); 2860 write_seqcount_end(&target->d_seq);