Changeset 106195 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/regops.c
- Timestamp:
- Oct 1, 2024 1:36:56 PM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 164979
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c ¶
r106061 r106195 3682 3682 } else 3683 3683 err = -EIO; 3684 #if RTLNX_VER_MAX(6,12,0) 3684 3685 SetPageError(page); 3686 #endif 3685 3687 unlock_page(page); 3686 3688 return err; … … 3741 3743 i_size_write(inode, offEndOfWrite); 3742 3744 3745 #if RTLNX_VER_MAX(6,12,0) 3743 3746 /* Update and unlock the page. */ 3744 3747 if (PageError(page)) 3745 3748 ClearPageError(page); 3749 #endif 3746 3750 SetPageUptodate(page); 3747 3751 unlock_page(page); … … 3765 3769 err = -EIO; 3766 3770 } 3771 #if RTLNX_VER_MAX(6,12,0) 3767 3772 SetPageError(page); 3773 #endif 3768 3774 unlock_page(page); 3769 3775 return err; … … 3793 3799 } 3794 3800 3795 # if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(9,3, 9,99) 3801 # if RTLNX_VER_MIN(6,12,0) 3802 static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, 3803 unsigned len, struct folio **foliop, void **fsdata) 3804 { 3805 vbsf_write_begin_warn(pos, len, 0); 3806 return simple_write_begin(file, mapping, pos, len, foliop, fsdata); 3807 } 3808 # elif RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(9,3, 9,99) 3796 3809 static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, 3797 3810 unsigned len, struct page **pagep, void **fsdata) … … 3800 3813 return simple_write_begin(file, mapping, pos, len, pagep, fsdata); 3801 3814 } 3802 # else 3815 # else /* KERNEL_VERSION <= 5.19 */ 3803 3816 static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, 3804 3817 unsigned len, unsigned flags, struct page **pagep, void **fsdata) … … 3807 3820 return simple_write_begin(file, mapping, pos, len, flags, pagep, fsdata); 3808 3821 } 3809 # endif 3822 # endif /* KERNEL_VERSION >= 6.12 */ 3810 3823 3811 3824 #endif /* KERNEL_VERSION >= 2.6.24 */ … … 3815 3828 * Companion to vbsf_write_begin (i.e. shouldn't be called). 3816 3829 */ 3830 # if RTLNX_VER_MIN(6,12,0) 3831 static int vbsf_write_end(struct file *file, struct address_space *mapping, 3832 loff_t pos, unsigned int len, unsigned int copied, 3833 struct folio *folio, void *fsdata) 3834 # else /* KERNEL_VERSION <= 6.12 && KERNEL_VERSION >= 5.14 */ 3817 3835 static int vbsf_write_end(struct file *file, struct address_space *mapping, 3818 3836 loff_t pos, unsigned int len, unsigned int copied, 3819 3837 struct page *page, void *fsdata) 3838 # endif /* KERNEL_VERSION >= 6.12 */ 3820 3839 { 3821 3840 static uint64_t volatile s_cCalls = 0;
Note:
See TracChangeset
for help on using the changeset viewer.