Changeset 264 for ksyslog/trunk
- Timestamp:
- 10/16/13 02:04:40 (11 years ago)
- Location:
- ksyslog/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ksyslog/trunk/compat.h
r248 r264 14 14 pos = rcu_dereference_raw(list_next_rcu(pos))) 15 15 #endif 16 17 static inline void 18 compat_fsnotify_open(struct file *file) 19 { 20 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) 21 fsnotify_open(file->f_path.dentry); 22 #else 23 fsnotify_open(file); 24 #endif 25 } 16 26 17 27 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) -
ksyslog/trunk/ksyslog.c
r263 r264 19 19 #include "ksyslog.h" 20 20 21 static DEFINE_SPINLOCK(ksyslog_vfs_lock);22 23 21 static struct ksyslog_queue ksyslog_queue; 24 22 static struct socket *ksyslog_rcv_sk = NULL; … … 100 98 goto out; 101 99 102 fsnotify_open(file->f_path.dentry);100 compat_fsnotify_open(file); 103 101 104 102 if (unlikely(S_ISDIR(file->f_path.dentry->d_inode->i_mode))) { … … 321 319 goto out; 322 320 323 spin_lock(&ksyslog_vfs_lock);324 325 321 file = ksyslog_open(ksyslog_path); 326 322 if (unlikely(IS_ERR(file))) { 327 spin_unlock(&ksyslog_vfs_lock);328 329 323 spin_lock_bh(&ksyslog_queue.lock); 330 324 ksyslog_entry_migrate(&write_queue, &ksyslog_queue); 331 325 spin_unlock_bh(&ksyslog_queue.lock); 332 333 326 goto out; 334 327 } … … 365 358 366 359 ksyslog_close(file); 367 spin_unlock(&ksyslog_vfs_lock);368 360 369 361 out:
Note: See TracChangeset
for help on using the changeset viewer.