aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/notify/mark.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c
index e56e8768d676..57bb1d74a2b6 100644
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
@@ -284,11 +284,8 @@ void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *ol
284void fsnotify_init_mark(struct fsnotify_mark *mark, 284void fsnotify_init_mark(struct fsnotify_mark *mark,
285 void (*free_mark)(struct fsnotify_mark *mark)) 285 void (*free_mark)(struct fsnotify_mark *mark))
286{ 286{
287 memset(mark, 0, sizeof(*mark));
287 spin_lock_init(&mark->lock); 288 spin_lock_init(&mark->lock);
288 atomic_set(&mark->refcnt, 1); 289 atomic_set(&mark->refcnt, 1);
289 INIT_HLIST_NODE(&mark->i.i_list);
290 mark->group = NULL;
291 mark->mask = 0;
292 mark->i.inode = NULL;
293 mark->free_mark = free_mark; 290 mark->free_mark = free_mark;
294} 291}