Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147756
b: refs/heads/master
c: ff52cc2
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris committed Jun 11, 2009
1 parent 70802bc commit f4e364f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63c882a05416e18de6fb59f7dd6da48f3bbe8273
refs/heads/master: ff52cc2158b32b3b979ca7802b1fd7c70f36e13c
12 changes: 4 additions & 8 deletions trunk/include/linux/fsnotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,18 @@ static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir,
struct inode *source = moved->d_inode;
u32 in_cookie = inotify_get_cookie();
u32 fs_cookie = fsnotify_get_cookie();
__u32 old_dir_mask = 0;
__u32 new_dir_mask = 0;
__u32 old_dir_mask = (FS_EVENT_ON_CHILD | FS_MOVED_FROM);
__u32 new_dir_mask = (FS_EVENT_ON_CHILD | FS_MOVED_TO);

if (old_dir == new_dir) {
old_dir_mask = FS_DN_RENAME;
}
if (old_dir == new_dir)
old_dir_mask |= FS_DN_RENAME;

if (isdir) {
isdir = IN_ISDIR;
old_dir_mask |= FS_IN_ISDIR;
new_dir_mask |= FS_IN_ISDIR;
}

old_dir_mask |= FS_MOVED_FROM;
new_dir_mask |= FS_MOVED_TO;

inotify_inode_queue_event(old_dir, IN_MOVED_FROM|isdir, in_cookie, old_name,
source);
inotify_inode_queue_event(new_dir, IN_MOVED_TO|isdir, in_cookie, new_name,
Expand Down

0 comments on commit f4e364f

Please sign in to comment.