Changeset 263


Ignore:
Timestamp:
10/15/13 02:25:05 (11 years ago)
Author:
atzm
Message:

set segment on close

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ksyslog/trunk/ksyslog.c

    r250 r263  
    1111#include <linux/udp.h> 
    1212#include <linux/namei.h> 
     13#include <linux/fsnotify.h> 
    1314#include <linux/proc_fs.h> 
    1415#include <linux/u64_stats_sync.h> 
     
    6970ksyslog_close(struct file *file) 
    7071{ 
    71         return filp_close(file, NULL); 
     72        int err; 
     73        mm_segment_t oldfs; 
     74 
     75        oldfs = get_fs(); 
     76        set_fs(get_ds()); 
     77 
     78        err = filp_close(file, NULL); 
     79 
     80        set_fs(oldfs); 
     81        return err; 
    7282} 
    7383 
     
    8999        if (unlikely(IS_ERR(file))) 
    90100                goto out; 
     101 
     102        fsnotify_open(file->f_path.dentry); 
    91103 
    92104        if (unlikely(S_ISDIR(file->f_path.dentry->d_inode->i_mode))) { 
Note: See TracChangeset for help on using the changeset viewer.