Lines 3505-3511
static struct vm_operations_struct const g_LoggingVmOpsTemplate = {
Link Here
|
3505 |
}; |
3505 |
}; |
3506 |
|
3506 |
|
3507 |
/** file_operations::mmap wrapper for logging purposes. */ |
3507 |
/** file_operations::mmap wrapper for logging purposes. */ |
3508 |
extern int vbsf_reg_mmap(struct file *file, struct vm_area_struct *vma) |
3508 |
static int vbsf_reg_mmap(struct file *file, struct vm_area_struct *vma) |
3509 |
{ |
3509 |
{ |
3510 |
int rc; |
3510 |
int rc; |
3511 |
SFLOGFLOW(("vbsf_reg_mmap: file=%p vma=%p\n", file, vma)); |
3511 |
SFLOGFLOW(("vbsf_reg_mmap: file=%p vma=%p\n", file, vma)); |
Lines 3786-3799
static inline void vbsf_write_begin_warn(loff_t pos, unsigned len, unsigned flag
Link Here
|
3786 |
} |
3786 |
} |
3787 |
|
3787 |
|
3788 |
# if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(9,3, 9,99) |
3788 |
# if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(9,3, 9,99) |
3789 |
int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, |
3789 |
static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, |
3790 |
unsigned len, struct page **pagep, void **fsdata) |
3790 |
unsigned len, struct page **pagep, void **fsdata) |
3791 |
{ |
3791 |
{ |
3792 |
vbsf_write_begin_warn(pos, len, 0); |
3792 |
vbsf_write_begin_warn(pos, len, 0); |
3793 |
return simple_write_begin(file, mapping, pos, len, pagep, fsdata); |
3793 |
return simple_write_begin(file, mapping, pos, len, pagep, fsdata); |
3794 |
} |
3794 |
} |
3795 |
# else |
3795 |
# else |
3796 |
int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, |
3796 |
static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, |
3797 |
unsigned len, unsigned flags, struct page **pagep, void **fsdata) |
3797 |
unsigned len, unsigned flags, struct page **pagep, void **fsdata) |
3798 |
{ |
3798 |
{ |
3799 |
vbsf_write_begin_warn(pos, len, flags); |
3799 |
vbsf_write_begin_warn(pos, len, flags); |